summaryrefslogtreecommitdiff
path: root/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-09-01 00:50:20 +0000
committerBill Wendling <isanbard@gmail.com>2011-09-01 00:50:20 +0000
commit35726bfcaa852fcbcbda03613b7f9a59763003bc (patch)
tree2ec6aca71f2b06c3608a6cf7fcd4b0bd3b032d8d /lib/Bitcode/Reader/BitcodeReader.cpp
parent20ed2e7939d6a8e804a51897c3af4588deb48be2 (diff)
downloadllvm-35726bfcaa852fcbcbda03613b7f9a59763003bc.tar.gz
llvm-35726bfcaa852fcbcbda03613b7f9a59763003bc.tar.bz2
llvm-35726bfcaa852fcbcbda03613b7f9a59763003bc.tar.xz
Don't forget to add the landingpad and resume instructions to the InstructionList.
This was found via a nightly build of 483.xalancbmk. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138923 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r--lib/Bitcode/Reader/BitcodeReader.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Bitcode/Reader/BitcodeReader.cpp b/lib/Bitcode/Reader/BitcodeReader.cpp
index a33705d2dd..148f74808a 100644
--- a/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -2514,6 +2514,7 @@ bool BitcodeReader::ParseFunctionBody(Function *F) {
if (getValueTypePair(Record, Idx, NextValueNo, Val))
return Error("Invalid RESUME record");
I = ResumeInst::Create(Val);
+ InstructionList.push_back(I);
break;
}
case bitc::FUNC_CODE_INST_UNWIND: // UNWIND
@@ -2578,6 +2579,7 @@ bool BitcodeReader::ParseFunctionBody(Function *F) {
}
I = LP;
+ InstructionList.push_back(I);
break;
}