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:
John McCall
2010-07-26 22:44:58 +00:00
parent fa60b0ee51
commit 5cbe152ffc
2 changed files with 19 additions and 1 deletions

View File

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