]> granicus.if.org Git - clang/commitdiff
Fix regression when invoking the MissingDealloc analysis: disable this check when...
authorTed Kremenek <kremenek@apple.com>
Mon, 4 Aug 2008 17:14:10 +0000 (17:14 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 4 Aug 2008 17:14:10 +0000 (17:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54319 91177308-0d34-0410-b5e6-96231b3b80d8

Driver/AnalysisConsumer.cpp

index 134f6d65334d3959db5c9627adab4de43871630f..0700c00f495dd4b9fb72bf805c1770b2c2a11b73 100644 (file)
@@ -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()),