Also update the EH with bitcode. I missed this earlier. Thanks to Duncan for pointing...
authorBill Wendling <isanbard@gmail.com>
Wed, 5 Oct 2011 07:04:14 +0000 (07:04 +0000)
committerBill Wendling <isanbard@gmail.com>
Wed, 5 Oct 2011 07:04:14 +0000 (07:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141169 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bitcode/Reader/BitcodeReader.cpp

index ca90315162924b436f7e33b558c4acc2f9121651..46565f36af16117244097a77de3dc314a82fdd51 100644 (file)
@@ -2939,6 +2939,9 @@ bool BitcodeReader::MaterializeModule(Module *M, std::string *ErrInfo) {
   }
   std::vector<std::pair<Function*, Function*> >().swap(UpgradedIntrinsics);
 
+  // Upgrade to new EH scheme. N.B. This will go away in 3.1.
+  UpgradeExceptionHandling(M);
+
   // Check debug info intrinsics.
   CheckDebugInfoIntrinsics(TheModule);