From 5cbe152ffc15d6329e89a3767f1c7f3a371b4c46 Mon Sep 17 00:00:00 2001 From: John McCall Date: Mon, 26 Jul 2010 22:44:58 +0000 Subject: Test for the presence of EH branch-throughs instead of normal branch-throughs. I knew this code duplication would bite me. llvm-svn: 109463 --- clang/lib/CodeGen/CodeGenFunction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp') diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index eb471ac173d..d6e498f453c 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -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); -- cgit v1.2.3