]> granicus.if.org Git - llvm/commitdiff
Default MemoryLocation passed to getModRefInfo should be None (D35441)
authorAlina Sbirlea <asbirlea@google.com>
Tue, 1 Aug 2017 00:47:17 +0000 (00:47 +0000)
committerAlina Sbirlea <asbirlea@google.com>
Tue, 1 Aug 2017 00:47:17 +0000 (00:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309645 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/MemCpyOptimizer.cpp

index 12aec1e0bdf0f3d93e6565163d6ada7382696df9..0eb4e19896bb5ce18f7483b0678b3acc7ee9ae7f 100644 (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))