summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ProfileEstimatorPass.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2009-12-03 13:23:03 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2009-12-03 13:23:03 +0000
commitdaea8420e9e1e0e94a7056742b4ce21580d86c37 (patch)
tree41c5c7c759ed0d936fa67c0cd091f961413104ab /llvm/lib/Analysis/ProfileEstimatorPass.cpp
parent70e39fe99c36626eabdfa154ed1c26446f111fde (diff)
downloadbcm5719-llvm-daea8420e9e1e0e94a7056742b4ce21580d86c37.tar.gz
bcm5719-llvm-daea8420e9e1e0e94a7056742b4ce21580d86c37.zip
Fix MSVC build.
llvm-svn: 90454
Diffstat (limited to 'llvm/lib/Analysis/ProfileEstimatorPass.cpp')
-rw-r--r--llvm/lib/Analysis/ProfileEstimatorPass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ProfileEstimatorPass.cpp b/llvm/lib/Analysis/ProfileEstimatorPass.cpp
index 7cf1cc523c2..8148429597e 100644
--- a/llvm/lib/Analysis/ProfileEstimatorPass.cpp
+++ b/llvm/lib/Analysis/ProfileEstimatorPass.cpp
@@ -324,7 +324,7 @@ bool ProfileEstimatorPass::runOnFunction(Function &F) {
// Since the entry block is the first one and has no predecessors, the edge
// (0,entry) is inserted with the starting weight of 1.
BasicBlock *entry = &F.getEntryBlock();
- BlockInformation[&F][entry] = pow(2,32);
+ BlockInformation[&F][entry] = pow(2.0, 32.0);
Edge edge = getEdge(0,entry);
EdgeInformation[&F][edge] = BlockInformation[&F][entry];
printEdgeWeight(edge);
OpenPOWER on IntegriCloud