fix 80-col.
authorZhongxing Xu <xuzhongxing@gmail.com>
Thu, 29 Oct 2009 04:41:24 +0000 (04:41 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Thu, 29 Oct 2009 04:41:24 +0000 (04:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85480 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/MemoryBuiltins.cpp

index 707a9ee77d2930642ceada06d5894574f33a0562..f3b94c2da4ac0167c1cc3ec9833b836f6b8a3b07 100644 (file)
@@ -159,7 +159,7 @@ static Value* isArrayMallocHelper(const CallInst *CI, LLVMContext &Context,
       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;