================
@@ -232,7 +243,10 @@ template <typename LocationEnum> class MemoryEffectsBase {
/// Whether this function only (at most) accesses inaccessible memory.
bool onlyAccessesInaccessibleMem() const {
- return getWithoutLoc(Location::InaccessibleMem).doesNotAccessMemory();
+ return getWithoutLoc(IRMemLocation::TargetMem0)
+ .getWithoutLoc(IRMemLocation::TargetMem1)
----------------
paulwalker-arm wrote:
To be consistent `onlyAccessesInaccessibleOrArgMem` also needs the same
additions.
https://github.com/llvm/llvm-project/pull/148650
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits