diff options
author | John McCall <rjmccall@apple.com> | 2010-07-26 22:44:58 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-07-26 22:44:58 +0000 |
commit | 5cbe152ffc15d6329e89a3767f1c7f3a371b4c46 (patch) | |
tree | 7ea92fce79d49489fcc7966950dcc5c3f041e5ea /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | fa60b0ee517f8cab3a149a6b41e376264a16bb53 (diff) | |
download | bcm5719-llvm-5cbe152ffc15d6329e89a3767f1c7f3a371b4c46.tar.gz bcm5719-llvm-5cbe152ffc15d6329e89a3767f1c7f3a371b4c46.zip |
Test for the presence of EH branch-throughs instead of normal branch-throughs.
I knew this code duplication would bite me.
llvm-svn: 109463
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |