aboutsummaryrefslogtreecommitdiff
path: root/llvm/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
commit04999041e8bc1ec6ea34223236cd938415bb3c39 (patch)
tree82cf7b0cd192142107e035e2ce357c9f9f98fa17 /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
parent2e793d6124e02b9eb12f63140917129ab3dc9dc6 (diff)
downloadllvm-04999041e8bc1ec6ea34223236cd938415bb3c39.zip
llvm-04999041e8bc1ec6ea34223236cd938415bb3c39.tar.gz
llvm-04999041e8bc1ec6ea34223236cd938415bb3c39.tar.bz2
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. llvm-svn: 194533
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
index 7a3b305..e1c3217 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/llvm/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);
}