[llvm-commits] [llvm] r90454 - /llvm/trunk/lib/Analysis/ProfileEstimatorPass.cpp
Benjamin Kramer
benny.kra at googlemail.com
Thu Dec 3 05:23:04 PST 2009
Author: d0k
Date: Thu Dec 3 07:23:03 2009
New Revision: 90454
URL: http://llvm.org/viewvc/llvm-project?rev=90454&view=rev
Log:
Fix MSVC build.
Modified:
llvm/trunk/lib/Analysis/ProfileEstimatorPass.cpp
Modified: llvm/trunk/lib/Analysis/ProfileEstimatorPass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ProfileEstimatorPass.cpp?rev=90454&r1=90453&r2=90454&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/ProfileEstimatorPass.cpp (original)
+++ llvm/trunk/lib/Analysis/ProfileEstimatorPass.cpp Thu Dec 3 07:23:03 2009
@@ -324,7 +324,7 @@
// 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);
More information about the llvm-commits
mailing list