forked from OSchip/llvm-project
[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:
parent
285cf9a84e
commit
380a6452b2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue