From 4f4e7e4610f7a6eb8923a3bf6f2951b2dca98608 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Mon, 4 Aug 2008 17:14:10 +0000 Subject: [PATCH] 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 --- Driver/AnalysisConsumer.cpp | 3 +++ 1 file changed, 3 insertions(+) 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()), -- 2.50.1