[AA] Add missing AAQI parameter

This alias() call did not pass on the AAQueryInfo.
This commit is contained in:
Nikita Popov 2020-11-15 20:29:53 +01:00
parent 7fa8b62920
commit 3b7f84d97f
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ ModRefInfo AAResults::getModRefInfo(const CallBase *Call,
unsigned ArgIdx = std::distance(Call->arg_begin(), AI);
MemoryLocation ArgLoc =
MemoryLocation::getForArgument(Call, ArgIdx, TLI);
AliasResult ArgAlias = alias(ArgLoc, Loc);
AliasResult ArgAlias = alias(ArgLoc, Loc, AAQI);
if (ArgAlias != NoAlias) {
ModRefInfo ArgMask = getArgModRefInfo(Call, ArgIdx);
AllArgsMask = unionModRef(AllArgsMask, ArgMask);