summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-12-02 23:28:08 +0000
committerMike Stump <mrs@apple.com>2009-12-02 23:28:08 +0000
commita68e2a29673cbe029dc6405a33c2118d966b4db6 (patch)
treef58b1e4e816c5e0ac4a4086b718b5910ff45a8f2 /clang
parentc8c44b5d676d7d3fada4bf64d06cd5cf901a7748 (diff)
downloadbcm5719-llvm-a68e2a29673cbe029dc6405a33c2118d966b4db6.tar.gz
bcm5719-llvm-a68e2a29673cbe029dc6405a33c2118d966b4db6.zip
Add missing branch to exit. Seemingly obvious when I look at the
code, but to track this down was laborious. llvm-svn: 90356
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/CodeGen/CGDecl.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp
index c0472830925..4c53c1ebcc7 100644
--- a/clang/lib/CodeGen/CGDecl.cpp
+++ b/clang/lib/CodeGen/CGDecl.cpp
@@ -534,6 +534,9 @@ void CodeGenFunction::EmitLocalBlockVarDecl(const VarDecl &D) {
} else {
DelayedCleanupBlock Scope(*this);
EmitCXXDestructorCall(D, Dtor_Complete, DeclPtr);
+
+ // Make sure to jump to the exit block.
+ EmitBranch(Scope.getCleanupExitBlock());
}
}
}
OpenPOWER on IntegriCloud