Silence a warning.
authorMatthijs Kooijman <matthijs@stdin.nl>
Thu, 7 Aug 2008 13:36:30 +0000 (13:36 +0000)
committerMatthijs Kooijman <matthijs@stdin.nl>
Thu, 7 Aug 2008 13:36:30 +0000 (13:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54462 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/LiveIntervalAnalysis.h

index 488b0748a4c8cddbc8d9a855763af994d65eae7c..039aac543b3ec0f84a4cb52a7a39b51cc1510a52 100644 (file)
@@ -185,7 +185,7 @@ namespace llvm {
     /// of instructions in a given LiveInterval.
     unsigned getApproximateInstructionCount(LiveInterval& I) {
       double IntervalPercentage = getScaledIntervalSize(I) / 1000.0;
-      return IntervalPercentage * FunctionSize;
+      return (unsigned)(IntervalPercentage * FunctionSize);
     }
 
     /// getMBBFromIndex - given an index in any instruction of an