[llvm] 3b7f84d - [AA] Add missing AAQI parameter
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 15 11:31:47 PST 2020
Author: Nikita Popov
Date: 2020-11-15T20:29:53+01:00
New Revision: 3b7f84d97fa5be1fcd178a5450362bfbe3ff0234
URL: https://github.com/llvm/llvm-project/commit/3b7f84d97fa5be1fcd178a5450362bfbe3ff0234
DIFF: https://github.com/llvm/llvm-project/commit/3b7f84d97fa5be1fcd178a5450362bfbe3ff0234.diff
LOG: [AA] Add missing AAQI parameter
This alias() call did not pass on the AAQueryInfo.
Added:
Modified:
llvm/lib/Analysis/AliasAnalysis.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/AliasAnalysis.cpp b/llvm/lib/Analysis/AliasAnalysis.cpp
index 456100975ac5..515aecdf1e8d 100644
--- a/llvm/lib/Analysis/AliasAnalysis.cpp
+++ b/llvm/lib/Analysis/AliasAnalysis.cpp
@@ -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);
More information about the llvm-commits
mailing list