diff options
author | Matthijs Kooijman <matthijs@stdin.nl> | 2008-08-07 13:36:30 +0000 |
---|---|---|
committer | Matthijs Kooijman <matthijs@stdin.nl> | 2008-08-07 13:36:30 +0000 |
commit | b3e15c00086d8442f5ff6f00aeb1e2f5d8b68ee0 (patch) | |
tree | 85450d19508e11d2a12015abadc9f5a46fb7b3be | |
parent | 6a35daed6f8946acc6fae8c9d556f9c6ba8a4ca1 (diff) |
Silence a warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54462 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/CodeGen/LiveIntervalAnalysis.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/LiveIntervalAnalysis.h b/include/llvm/CodeGen/LiveIntervalAnalysis.h index 488b0748a4..039aac543b 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 |