1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Silence a warning.

llvm-svn: 54462
This commit is contained in:
Matthijs Kooijman 2008-08-07 13:36:30 +00:00
parent 212df90ce5
commit 2ba1b80c7f

View 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