summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDecl.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-07-22 21:25:44 +0000
committerJohn McCall <rjmccall@apple.com>2010-07-22 21:25:44 +0000
commit775f9f9919c658967a1f5c32c6466d8c824b9442 (patch)
treea5454c86010504f026dcf7f489af979ed746e42e /clang/lib/CodeGen/CGDecl.cpp
parentaba8ee38c27eba47b2ef610d25122c5ef947df0c (diff)
downloadbcm5719-llvm-775f9f9919c658967a1f5c32c6466d8c824b9442.tar.gz
bcm5719-llvm-775f9f9919c658967a1f5c32c6466d8c824b9442.zip
Turn off EH cleanups for __block variables; they caused some internal buildbot
failures. There's a radar tracking this. llvm-svn: 109170
Diffstat (limited to 'clang/lib/CodeGen/CGDecl.cpp')
-rw-r--r--clang/lib/CodeGen/CGDecl.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp
index 7dcd465de77..c4ce008748a 100644
--- a/clang/lib/CodeGen/CGDecl.cpp
+++ b/clang/lib/CodeGen/CGDecl.cpp
@@ -804,8 +804,10 @@ void CodeGenFunction::EmitLocalBlockVarDecl(const VarDecl &D,
F, &Info, DeclPtr, &D);
}
+ // If this is a block variable, clean it up.
+ // FIXME: this should be an EH cleanup as well. rdar://problem/8224178
if (needsDispose && CGM.getLangOptions().getGCMode() != LangOptions::GCOnly)
- EHStack.pushCleanup<CallBlockRelease>(NormalAndEHCleanup, DeclPtr);
+ EHStack.pushCleanup<CallBlockRelease>(NormalCleanup, DeclPtr);
}
/// Emit an alloca (or GlobalValue depending on target)
OpenPOWER on IntegriCloud