From b3e15c00086d8442f5ff6f00aeb1e2f5d8b68ee0 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Thu, 7 Aug 2008 13:36:30 +0000 Subject: [PATCH] Silence a warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54462 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/LiveIntervalAnalysis.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/CodeGen/LiveIntervalAnalysis.h b/include/llvm/CodeGen/LiveIntervalAnalysis.h index 488b0748a4c..039aac543b3 100644 --- a/include/llvm/CodeGen/LiveIntervalAnalysis.h +++ b/include/llvm/CodeGen/LiveIntervalAnalysis.h @@ -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