mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Silence a warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54462 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6a35daed6f
commit
b3e15c0008
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user