diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2009-12-03 13:23:03 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2009-12-03 13:23:03 +0000 |
commit | 88a91b579bb300f700a4acc5917f9e3a048dd05c (patch) | |
tree | 7ba00f295e690a7499687de75a8578eb623c1f53 /lib | |
parent | 8c30abec6d53e02c87c50ed7585ccd2ecac752aa (diff) | |
download | external_llvm-88a91b579bb300f700a4acc5917f9e3a048dd05c.zip external_llvm-88a91b579bb300f700a4acc5917f9e3a048dd05c.tar.gz external_llvm-88a91b579bb300f700a4acc5917f9e3a048dd05c.tar.bz2 |
Fix MSVC build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90454 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Analysis/ProfileEstimatorPass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/ProfileEstimatorPass.cpp b/lib/Analysis/ProfileEstimatorPass.cpp index 7cf1cc5..8148429 100644 --- a/lib/Analysis/ProfileEstimatorPass.cpp +++ b/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); |