summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SpillPlacement.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-02-03 17:04:12 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-02-03 17:04:12 +0000
commit9590c7fbca2a3c18d0000676b2a6336f6458ed42 (patch)
tree4b3cdf817cff1c4c5e746e5030a6dce58c4c4f08 /lib/CodeGen/SpillPlacement.cpp
parentc38a03eeca3a506577b2d5a29629a81a0cefff03 (diff)
downloadllvm-9590c7fbca2a3c18d0000676b2a6336f6458ed42.tar.gz
llvm-9590c7fbca2a3c18d0000676b2a6336f6458ed42.tar.bz2
llvm-9590c7fbca2a3c18d0000676b2a6336f6458ed42.tar.xz
Silence an MSVC warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124798 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SpillPlacement.cpp')
-rw-r--r--lib/CodeGen/SpillPlacement.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SpillPlacement.cpp b/lib/CodeGen/SpillPlacement.cpp
index ee92a59c9b..cf24a22d16 100644
--- a/lib/CodeGen/SpillPlacement.cpp
+++ b/lib/CodeGen/SpillPlacement.cpp
@@ -154,7 +154,7 @@ struct SpillPlacement::Node {
// 1. It avoids arbitrary bias when all links are 0 as is possible during
// initial iterations.
// 2. It helps tame rounding errors when the links nominally sum to 0.
- const float Thres = 1e-4;
+ const float Thres = 1e-4f;
bool Before = preferReg();
if (Sum < -Thres)
Value = -1;