mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-14 15:19:33 +00:00
fix a serious regression I introduced in my previous patch.
llvm-svn: 68173
This commit is contained in:
parent
d7c837bb4b
commit
1f4b1f7866
@ -2067,6 +2067,7 @@ Module *BitcodeReader::materializeModule(std::string *ErrInfo) {
|
||||
if (CallInst* CI = dyn_cast<CallInst>(*UI++))
|
||||
UpgradeIntrinsicCall(CI, I->second);
|
||||
}
|
||||
if (!I->first->use_empty())
|
||||
I->first->replaceAllUsesWith(I->second);
|
||||
I->first->eraseFromParent();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user