Default MemoryLocation passed to getModRefInfo should be None (D35441)

llvm-svn: 309645
This commit is contained in:
Alina Sbirlea 2017-08-01 00:47:17 +00:00
parent a1f12ba17e
commit 30d8a881e8
1 changed files with 1 additions and 1 deletions

View File

@ -535,7 +535,7 @@ static bool moveUp(AliasAnalysis &AA, StoreInst *SI, Instruction *P,
for (auto I = --SI->getIterator(), E = P->getIterator(); I != E; --I) {
auto *C = &*I;
bool MayAlias = AA.getModRefInfo(C, MemoryLocation()) != MRI_NoModRef;
bool MayAlias = AA.getModRefInfo(C, None) != MRI_NoModRef;
bool NeedLift = false;
if (Args.erase(C))