diff options
| author | Edward O'Callaghan <eocallaghan@auroraux.org> | 2009-11-02 03:14:31 +0000 |
|---|---|---|
| committer | Edward O'Callaghan <eocallaghan@auroraux.org> | 2009-11-02 03:14:31 +0000 |
| commit | 438b00b2adf348cdb933d8764335cebd56046abc (patch) | |
| tree | a3049aad5fb065a66c280eae511bae37368bb93d /lib/Analysis | |
| parent | 38871e4c3bc9a8fc1f520dc8f2868381061ec92b (diff) | |
| download | external_llvm-438b00b2adf348cdb933d8764335cebd56046abc.zip external_llvm-438b00b2adf348cdb933d8764335cebd56046abc.tar.gz external_llvm-438b00b2adf348cdb933d8764335cebd56046abc.tar.bz2 | |
Fix for warning seen on DF-BSD, Victor, please fix this to use a shift instead of pow()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85781 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
| -rw-r--r-- | lib/Analysis/MemoryBuiltins.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/MemoryBuiltins.cpp b/lib/Analysis/MemoryBuiltins.cpp index f3b94c2..4ebfa96 100644 --- a/lib/Analysis/MemoryBuiltins.cpp +++ b/lib/Analysis/MemoryBuiltins.cpp @@ -158,7 +158,7 @@ static Value* isArrayMallocHelper(const CallInst *CI, LLVMContext &Context, if (Opcode == Instruction::Shl) { ConstantInt* Op1Int = dyn_cast<ConstantInt>(Op1); if (!Op1Int) return NULL; - Value* Op1Pow = ConstantInt::get(Op1->getType(), + Value* Op1Pow = ConstantInt::get(Op1->getType(), (uint64_t) pow(2.0, (double) Op1Int->getZExtValue())); if (Op0 == ElementSize || (FoldedElementSize && Op0 == FoldedElementSize)) // ArraySize << log2(ElementSize) |
