summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode
diff options
context:
space:
mode:
authorVictor Hernandez <vhernandez@apple.com>2009-11-06 01:33:24 +0000
committerVictor Hernandez <vhernandez@apple.com>2009-11-06 01:33:24 +0000
commitb9f589977944fad4feaaf709cf2818ac5f98de1b (patch)
tree5eccc709a70cf26793579109c48ad3e7eca7c2be /llvm/lib/Bitcode
parent06ce6506d2db3c42a8609d4746052fddca7e829b (diff)
downloadbcm5719-llvm-b9f589977944fad4feaaf709cf2818ac5f98de1b.tar.gz
bcm5719-llvm-b9f589977944fad4feaaf709cf2818ac5f98de1b.zip
Revert r86077 because it caused crashes in 179.art and 175.vpr on ARM
llvm-svn: 86213
Diffstat (limited to 'llvm/lib/Bitcode')
-rw-r--r--llvm/lib/Bitcode/Reader/BitcodeReader.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index 9916388dad1..68527e3d474 100644
--- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud