aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGDecl.cpp
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
commit730203088e9909e304c4868cbca72ee2652335bf (patch)
tree8dbc9df160eb4518f1b3667587b936d990529ac8 /lib/CodeGen/CGDecl.cpp
parent802ab45fea51beff12f386329d4928811a479c6e (diff)
Add missing branch to exit. Seemingly obvious when I look at the
code, but to track this down was laborious. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90356 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDecl.cpp')
-rw-r--r--lib/CodeGen/CGDecl.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/CGDecl.cpp b/lib/CodeGen/CGDecl.cpp
index c047283092..4c53c1ebcc 100644
--- a/lib/CodeGen/CGDecl.cpp
+++ b/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());
}
}
}