Skip to content

Commit 232a14d

Browse files
[BatchAA] Fix a reference to a non-exising pointsToConstantMemory overload (NFC) (#82173)
1 parent 0215d2c commit 232a14d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/include/llvm/Analysis/AliasAnalysis.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -566,8 +566,6 @@ class AAResults {
566566
AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB,
567567
AAQueryInfo &AAQI, const Instruction *CtxI = nullptr);
568568

569-
bool pointsToConstantMemory(const MemoryLocation &Loc, AAQueryInfo &AAQI,
570-
bool OrLocal = false);
571569
ModRefInfo getModRefInfoMask(const MemoryLocation &Loc, AAQueryInfo &AAQI,
572570
bool IgnoreLocals = false);
573571
ModRefInfo getModRefInfo(const Instruction *I, const CallBase *Call2,
@@ -635,7 +633,7 @@ class BatchAAResults {
635633
return AA.alias(LocA, LocB, AAQI);
636634
}
637635
bool pointsToConstantMemory(const MemoryLocation &Loc, bool OrLocal = false) {
638-
return AA.pointsToConstantMemory(Loc, AAQI, OrLocal);
636+
return isNoModRef(AA.getModRefInfoMask(Loc, AAQI, OrLocal));
639637
}
640638
ModRefInfo getModRefInfoMask(const MemoryLocation &Loc,
641639
bool IgnoreLocals = false) {

0 commit comments

Comments
 (0)