Test for the presence of EH branch-throughs instead of normal branch-throughs.
I knew this code duplication would bite me. llvm-svn: 109463
This commit is contained in:
@@ -830,7 +830,7 @@ void CodeGenFunction::PopCleanupBlock(bool FallthroughIsBranchThrough) {
|
||||
|
||||
// If we have exactly one branch-after and no branch-throughs, we
|
||||
// can dispatch it without a switch.
|
||||
if (!Scope.hasBranchThroughs() &&
|
||||
if (!Scope.hasEHBranchThroughs() &&
|
||||
Scope.getNumEHBranchAfters() == 1) {
|
||||
assert(!EHBranchThroughDest);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user