summaryrefslogtreecommitdiffstats
path: root/llvm
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
commit2b855eb69c01d7a3d8ae2c87f309544a4362e723 (patch)
tree94508b3b0f3bac592bba4fc94fef00bb0bd13bdb /llvm
parentc4da110fd261b27946d81ccc45bedc97c9398040 (diff)
downloadbcm5719-llvm-2b855eb69c01d7a3d8ae2c87f309544a4362e723.tar.gz
bcm5719-llvm-2b855eb69c01d7a3d8ae2c87f309544a4362e723.zip
Silence an MSVC warning
llvm-svn: 124798
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/CodeGen/SpillPlacement.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SpillPlacement.cpp b/llvm/lib/CodeGen/SpillPlacement.cpp
index ee92a59c9bc..cf24a22d16e 100644
--- a/llvm/lib/CodeGen/SpillPlacement.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud