Fix a control flow problem in commit rL257277.

llvm-svn: 257278
This commit is contained in:
Chen Li 2016-01-10 06:13:32 +00:00
parent 1689c2f54b
commit c375450e3f
1 changed files with 2 additions and 0 deletions

View File

@ -3247,6 +3247,8 @@ bool SimplifyCFGOpt::SimplifyResume(ResumeInst *RI, IRBuilder<> &Builder) {
RI->getValue() == RI->getParent()->getFirstNonPHI())
// The resume must unwind the exception that caused control to branch here.
return SimplifySingleResume(RI);
else
return false;
}
// Simplify resume that is shared by several landing pads (phi of landing pad).