[llvm-commits] [llvm] r138923 - /llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp

Bill Wendling isanbard at gmail.com
Wed Aug 31 17:50:20 PDT 2011


Author: void
Date: Wed Aug 31 19:50:20 2011
New Revision: 138923

URL: http://llvm.org/viewvc/llvm-project?rev=138923&view=rev
Log:
Don't forget to add the landingpad and resume instructions to the InstructionList.

This was found via a nightly build of 483.xalancbmk.

Modified:
    llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp

Modified: llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp?rev=138923&r1=138922&r2=138923&view=diff
==============================================================================
--- llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp (original)
+++ llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp Wed Aug 31 19:50:20 2011
@@ -2514,6 +2514,7 @@
       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 @@
       }
 
       I = LP;
+      InstructionList.push_back(I);
       break;
     }
 





More information about the llvm-commits mailing list