commit | cd1280b405af3f99746cccbf09d68364213aa320 | [log] [tgz] |
---|---|---|
author | Mike Stump <mrs@apple.com> | Thu Mar 05 02:34:38 2009 +0000 |
committer | Mike Stump <mrs@apple.com> | Thu Mar 05 02:34:38 2009 +0000 |
tree | 4724a5e2a0a963a0effd8b88921846dc87c9d8c4 | |
parent | 6c29a91c0513fd587019d4547d82832b4bbfd304 [diff] [blame] |
Avoid dispose calls when only doing gc. llvm-svn: 66126
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp index a01aad6..f31a05a 100644 --- a/clang/lib/CodeGen/CGDecl.cpp +++ b/clang/lib/CodeGen/CGDecl.cpp
@@ -391,7 +391,7 @@ EmitCall(CGM.getTypes().getFunctionInfo(FD), F, Args); } - if (needsDispose) { + if (needsDispose && CGM.getLangOptions().getGCMode() != LangOptions::GCOnly) { CleanupScope scope(*this); BuildBlockRelease(D, DeclPtr); }