diff options
author | Victor Hernandez <vhernandez@apple.com> | 2009-11-06 01:33:24 +0000 |
---|---|---|
committer | Victor Hernandez <vhernandez@apple.com> | 2009-11-06 01:33:24 +0000 |
commit | df98761d08ae091420b7e9c1366de7684400fc36 (patch) | |
tree | 19dd0e96430169e3c197a4817e5e55f3d2ea277d /lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 465c3bed165dc76452606ea10a34ae2ef6033e8a (diff) |
Revert r86077 because it caused crashes in 179.art and 175.vpr on ARM
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86213 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r-- | lib/Bitcode/Reader/BitcodeReader.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Bitcode/Reader/BitcodeReader.cpp b/lib/Bitcode/Reader/BitcodeReader.cpp index 9916388dad..68527e3d47 100644 --- a/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/lib/Bitcode/Reader/BitcodeReader.cpp @@ -2101,10 +2101,8 @@ bool BitcodeReader::ParseFunctionBody(Function *F) { if (!Ty || !Size) return Error("Invalid MALLOC record"); if (!CurBB) return Error("Invalid malloc instruction with no BB"); const Type *Int32Ty = IntegerType::getInt32Ty(CurBB->getContext()); - Constant *AllocSize = ConstantExpr::getSizeOf(Ty->getElementType()); - AllocSize = ConstantExpr::getTruncOrBitCast(AllocSize, Int32Ty); I = CallInst::CreateMalloc(CurBB, Int32Ty, Ty->getElementType(), - AllocSize, Size, NULL); + Size, NULL); InstructionList.push_back(I); break; } |