summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-10-25 18:40:47 +0000
committerChris Lattner <sabre@nondot.org>2004-10-25 18:40:47 +0000
commit111c3e827e7c9386ae650b9a88feb87a5ccec536 (patch)
treee481ce2a21158096b4e674435cd4f4acd037e16c /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
parent43df507fef53df86e84a530f12bee08da5cd0ba6 (diff)
downloadbcm5719-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.cpp2
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;
OpenPOWER on IntegriCloud