diff options
| author | Chris Lattner <sabre@nondot.org> | 2004-10-25 18:40:47 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2004-10-25 18:40:47 +0000 |
| commit | 111c3e827e7c9386ae650b9a88feb87a5ccec536 (patch) | |
| tree | e481ce2a21158096b4e674435cd4f4acd037e16c /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | |
| parent | 43df507fef53df86e84a530f12bee08da5cd0ba6 (diff) | |
| download | bcm5719-llvm-111c3e827e7c9386ae650b9a88feb87a5ccec536.tar.gz bcm5719-llvm-111c3e827e7c9386ae650b9a88feb87a5ccec536.zip | |
Patch to support MSVC better, contributed by Morten Ofstad
llvm-svn: 17215
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp index 6916e966949..c3a15fcc198 100644 --- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -156,7 +156,7 @@ bool LiveIntervals::runOnMachineFunction(MachineFunction &fn) { LiveInterval &RegInt = getInterval(reg); RegInt.weight += - (mop.isUse() + mop.isDef()) * pow(10.0F, loopDepth); + (mop.isUse() + mop.isDef()) * pow(10.0F, (int)loopDepth); } } ++mii; |

