From: Ted Kremenek Date: Mon, 4 Aug 2008 17:14:10 +0000 (+0000) Subject: Fix regression when invoking the MissingDealloc analysis: disable this check when... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4f4e7e4610f7a6eb8923a3bf6f2951b2dca98608;p=clang 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 --- 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(mgr.getCodeDecl()),