[llvm-commits] [llvm] r85480 - /llvm/trunk/lib/Analysis/MemoryBuiltins.cpp
Zhongxing Xu
xuzhongxing at gmail.com
Wed Oct 28 21:41:24 PDT 2009
Author: zhongxingxu
Date: Wed Oct 28 23:41:24 2009
New Revision: 85480
URL: http://llvm.org/viewvc/llvm-project?rev=85480&view=rev
Log:
fix 80-col.
Modified:
llvm/trunk/lib/Analysis/MemoryBuiltins.cpp
Modified: llvm/trunk/lib/Analysis/MemoryBuiltins.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/MemoryBuiltins.cpp?rev=85480&r1=85479&r2=85480&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/MemoryBuiltins.cpp (original)
+++ llvm/trunk/lib/Analysis/MemoryBuiltins.cpp Wed Oct 28 23:41:24 2009
@@ -159,7 +159,7 @@
ConstantInt* Op1Int = dyn_cast<ConstantInt>(Op1);
if (!Op1Int) return NULL;
Value* Op1Pow = ConstantInt::get(Op1->getType(),
- pow((double) 2, (double) Op1Int->getZExtValue()));
+ pow(2.0, (double) Op1Int->getZExtValue()));
if (Op0 == ElementSize || (FoldedElementSize && Op0 == FoldedElementSize))
// ArraySize << log2(ElementSize)
return Op1Pow;
More information about the llvm-commits
mailing list