summaryrefslogtreecommitdiff
path: root/lib/CodeGen/LiveIntervalAnalysis.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2013-11-13 00:15:44 +0000
committerAaron Ballman <aaron@aaronballman.com>2013-11-13 00:15:44 +0000
commiteb3602472026dc029beb45ccbe09bc84162ba949 (patch)
tree7908547e3b54b45f96a24eddf9f30c7ace487bb0 /lib/CodeGen/LiveIntervalAnalysis.cpp
parent328066513d18acd4e44ad57172c73f1a2a026022 (diff)
downloadllvm-eb3602472026dc029beb45ccbe09bc84162ba949.tar.gz
llvm-eb3602472026dc029beb45ccbe09bc84162ba949.tar.bz2
llvm-eb3602472026dc029beb45ccbe09bc84162ba949.tar.xz
Replacing HUGE_VALF with llvm::huge_valf in order to work around a warning triggered in MSVC 12.
Patch reviewed by Reid Kleckner and Jim Grosbach. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194533 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--lib/CodeGen/LiveIntervalAnalysis.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp
index 7a3b305116..e1c3217a77 100644
--- a/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -170,7 +170,8 @@ void LiveIntervals::dumpInstrs() const {
#endif
LiveInterval* LiveIntervals::createInterval(unsigned reg) {
- float Weight = TargetRegisterInfo::isPhysicalRegister(reg) ? HUGE_VALF : 0.0F;
+ float Weight = TargetRegisterInfo::isPhysicalRegister(reg) ?
+ llvm::huge_valf : 0.0F;
return new LiveInterval(reg, Weight);
}