forked from OSchip/llvm-project
Fix a control flow problem in commit rL257277.
llvm-svn: 257278
This commit is contained in:
parent
1689c2f54b
commit
c375450e3f
|
@ -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).
|
||||
|
|
Loading…
Reference in New Issue