summaryrefslogtreecommitdiff
path: root/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-10-05 07:04:14 +0000
committerBill Wendling <isanbard@gmail.com>2011-10-05 07:04:14 +0000
commite9b88cb393fde367d803a57556a6f93c8345383c (patch)
tree30e7e8cb8957dd677ea58521aabf09f3253a9154 /lib/Bitcode/Reader/BitcodeReader.cpp
parentf3baa581e82b099d6cda24b8dfaf9e91faa28f2b (diff)
downloadllvm-e9b88cb393fde367d803a57556a6f93c8345383c.tar.gz
llvm-e9b88cb393fde367d803a57556a6f93c8345383c.tar.bz2
llvm-e9b88cb393fde367d803a57556a6f93c8345383c.tar.xz
Also update the EH with bitcode. I missed this earlier. Thanks to Duncan for pointing it out.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141169 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r--lib/Bitcode/Reader/BitcodeReader.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Bitcode/Reader/BitcodeReader.cpp b/lib/Bitcode/Reader/BitcodeReader.cpp
index ca90315162..46565f36af 100644
--- a/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -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);