forked from OSchip/llvm-project
Default MemoryLocation passed to getModRefInfo should be None (D35441)
llvm-svn: 309645
This commit is contained in:
parent
a1f12ba17e
commit
30d8a881e8
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue