diff --git a/polly/lib/Analysis/ScopBuilder.cpp b/polly/lib/Analysis/ScopBuilder.cpp index ad77c4a5303802..0e3de8b5b6c5f3 100644 --- a/polly/lib/Analysis/ScopBuilder.cpp +++ b/polly/lib/Analysis/ScopBuilder.cpp @@ -1649,7 +1649,7 @@ bool ScopBuilder::buildAccessCallInst(MemAccInst Inst, ScopStmt *Stmt) { return true; if (ME.onlyAccessesArgPointees()) { - ModRefInfo ArgMR = ME.getModRef(MemoryEffects::ArgMem); + ModRefInfo ArgMR = ME.getModRef(IRMemLocation::ArgMem); auto AccType = !isModSet(ArgMR) ? MemoryAccess::READ : MemoryAccess::MAY_WRITE; Loop *L = LI.getLoopFor(Inst->getParent());