[ASTMatchers] work around a miscompile; "NFC"

I chatted with Reid offline, and we agreed that having a workaround here
would be appropriate until PR43879 is resolved.

The given transformation Works On My Machine(TM), and should hopefully
hold more broadly, but my fingers are crossed nonetheless. :)
This commit is contained in:
George Burgess IV 2019-11-22 20:03:06 -08:00
parent 285cf9a84e
commit 380a6452b2
1 changed files with 2 additions and 1 deletions

View File

@ -904,8 +904,9 @@ bool MatchASTVisitor::objcClassIsDerivedFrom(
if (Base.matches(*ClassDecl, this, Builder))
return true;
// Not `return false` as a temporary workaround for PR43879.
if (Directly)
return false;
break;
}
return false;