forked from OSchip/llvm-project
Fix regression when invoking the MissingDealloc analysis: disable this check when in -fobjc-gc-only mode.
llvm-svn: 54319
This commit is contained in:
parent
88402ce8d0
commit
9898028742
|
@ -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()),
|
||||
|
|
Loading…
Reference in New Issue