diff options
author | Chris Lattner <sabre@nondot.org> | 2005-01-08 19:55:00 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-01-08 19:55:00 +0000 |
commit | 28696bee024805a6b191cfe12e1a24784dae8aa7 (patch) | |
tree | 8a4c77fe0f90bec16d616f36e97cc9f288f7255e /lib/CodeGen/LiveIntervalAnalysis.cpp | |
parent | 5e5fb942e6bcdb5436c60f0343cefaa73b82d2f8 (diff) |
Silence warnings from VS
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19386 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r-- | lib/CodeGen/LiveIntervalAnalysis.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index df3c6c2b43..44b94b3e57 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -261,7 +261,7 @@ addIntervalsForSpills(const LiveInterval &li, VirtRegMap &vrm, int slot) { // the spill weight is now infinity as it // cannot be spilled again - nI.weight = HUGE_VAL; + nI.weight = float(HUGE_VAL); LiveRange LR(start, end, nI.getNextValue()); DEBUG(std::cerr << " +" << LR); nI.addRange(LR); @@ -694,6 +694,7 @@ bool LiveIntervals::overlapsAliases(const LiveInterval *LHS, } LiveInterval LiveIntervals::createInterval(unsigned reg) { - float Weight = MRegisterInfo::isPhysicalRegister(reg) ? HUGE_VAL :0.0F; + float Weight = MRegisterInfo::isPhysicalRegister(reg) ? + (float)HUGE_VAL :0.0F; return LiveInterval(reg, Weight); } |