Fix regression when invoking the MissingDealloc analysis: disable this check when in -fobjc-gc-only mode.

llvm-svn: 54319
This commit is contained in:
Ted Kremenek 2008-08-04 17:14:10 +00:00
parent 88402ce8d0
commit 9898028742
1 changed files with 3 additions and 0 deletions

View File

@ -387,6 +387,9 @@ static void ActionCFGView(AnalysisManager& mgr) {
} }
static void ActionWarnObjCDealloc(AnalysisManager& mgr) { static void ActionWarnObjCDealloc(AnalysisManager& mgr) {
if (mgr.getLangOptions().getGCMode() == LangOptions::GCOnly)
return;
BugReporter BR(mgr); BugReporter BR(mgr);
CheckObjCDealloc(cast<ObjCImplementationDecl>(mgr.getCodeDecl()), CheckObjCDealloc(cast<ObjCImplementationDecl>(mgr.getCodeDecl()),