aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthijs Kooijman <matthijs@stdin.nl>2008-08-07 13:36:30 +0000
committerMatthijs Kooijman <matthijs@stdin.nl>2008-08-07 13:36:30 +0000
commitb3e15c00086d8442f5ff6f00aeb1e2f5d8b68ee0 (patch)
tree85450d19508e11d2a12015abadc9f5a46fb7b3be
parent6a35daed6f8946acc6fae8c9d556f9c6ba8a4ca1 (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.h2
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