forked from OSchip/llvm-project
[GlobalsAA] Remove unnecessary AAResultBase fallback (NFC)
This is unnecessary, as AA result chaining is implemented at a higher level now.
This commit is contained in:
parent
a21c245307
commit
4ec22ba9c8
|
@ -941,9 +941,7 @@ ModRefInfo GlobalsAAResult::getModRefInfo(const CallBase *Call,
|
|||
Known = unionModRef(FI->getModRefInfoForGlobal(*GV),
|
||||
getModRefInfoForArgument(Call, GV, AAQI));
|
||||
|
||||
if (!isModOrRefSet(Known))
|
||||
return ModRefInfo::NoModRef; // No need to query other mod/ref analyses
|
||||
return intersectModRef(Known, AAResultBase::getModRefInfo(Call, Loc, AAQI));
|
||||
return Known;
|
||||
}
|
||||
|
||||
GlobalsAAResult::GlobalsAAResult(
|
||||
|
|
Loading…
Reference in New Issue