Also update the EH with bitcode. I missed this earlier. Thanks to Duncan for pointing it out.

llvm-svn: 141169
This commit is contained in:
Bill Wendling 2011-10-05 07:04:14 +00:00
parent f6567a131d
commit ad33c139ac
1 changed files with 3 additions and 0 deletions

View 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);