aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-08-04 17:14:10 +0000
committerTed Kremenek <kremenek@apple.com>2008-08-04 17:14:10 +0000
commit4f4e7e4610f7a6eb8923a3bf6f2951b2dca98608 (patch)
tree0fa7fe47978c8d225df434d6f2366c08577a42dd
parent0ffb125996336fc7602b162c0a9e392f1a93060f (diff)
Fix regression when invoking the MissingDealloc analysis: disable this check when in -fobjc-gc-only mode.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54319 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--Driver/AnalysisConsumer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Driver/AnalysisConsumer.cpp b/Driver/AnalysisConsumer.cpp
index 134f6d6533..0700c00f49 100644
--- a/Driver/AnalysisConsumer.cpp
+++ b/Driver/AnalysisConsumer.cpp
@@ -387,6 +387,9 @@ static void ActionCFGView(AnalysisManager& mgr) {
}
static void ActionWarnObjCDealloc(AnalysisManager& mgr) {
+ if (mgr.getLangOptions().getGCMode() == LangOptions::GCOnly)
+ return;
+
BugReporter BR(mgr);
CheckObjCDealloc(cast<ObjCImplementationDecl>(mgr.getCodeDecl()),