diff options
author | David Blaikie <dblaikie@gmail.com> | 2015-03-14 19:53:33 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2015-03-14 19:53:33 +0000 |
commit | 096b1da29d21cda6c8950e477010777019ed0e88 (patch) | |
tree | 3bd83ac0be4972745c996240c532f3f2bcae9583 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 20b76ac2aeef28a63d293dc44a7c4bc3ba919c00 (diff) | |
download | bcm5719-llvm-096b1da29d21cda6c8950e477010777019ed0e88.tar.gz bcm5719-llvm-096b1da29d21cda6c8950e477010777019ed0e88.zip |
[opaque pointer type] more gep API migration
llvm-svn: 232274
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index 9a0ec19e6f3..143bb3dad9e 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp @@ -3131,7 +3131,7 @@ std::error_code BitcodeReader::ParseFunctionBody(Function *F) { GEPIdx.push_back(Op); } - I = GetElementPtrInst::Create(BasePtr, GEPIdx); + I = GetElementPtrInst::Create(Ty, BasePtr, GEPIdx); if (Ty && Ty != cast<GetElementPtrInst>(I)->getSourceElementType()) return Error("Invalid record"); InstructionList.push_back(I); |