[cfe-commits] r54319 - /cfe/trunk/Driver/AnalysisConsumer.cpp
Ted Kremenek
kremenek at apple.com
Mon Aug 4 10:14:14 PDT 2008
Author: kremenek
Date: Mon Aug 4 12:14:10 2008
New Revision: 54319
URL: http://llvm.org/viewvc/llvm-project?rev=54319&view=rev
Log:
Fix regression when invoking the MissingDealloc analysis: disable this check when in -fobjc-gc-only mode.
Modified:
cfe/trunk/Driver/AnalysisConsumer.cpp
Modified: cfe/trunk/Driver/AnalysisConsumer.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/AnalysisConsumer.cpp?rev=54319&r1=54318&r2=54319&view=diff
==============================================================================
--- cfe/trunk/Driver/AnalysisConsumer.cpp (original)
+++ cfe/trunk/Driver/AnalysisConsumer.cpp Mon Aug 4 12:14:10 2008
@@ -387,6 +387,9 @@
}
static void ActionWarnObjCDealloc(AnalysisManager& mgr) {
+ if (mgr.getLangOptions().getGCMode() == LangOptions::GCOnly)
+ return;
+
BugReporter BR(mgr);
CheckObjCDealloc(cast<ObjCImplementationDecl>(mgr.getCodeDecl()),
More information about the cfe-commits
mailing list