Index: lib/Transforms/Utils/MemorySSA.cpp =================================================================== --- lib/Transforms/Utils/MemorySSA.cpp +++ lib/Transforms/Utils/MemorySSA.cpp @@ -235,7 +235,7 @@ } ImmutableCallSite UseCS(UseInst); - if (UseCS) { + if (UseCS && UseLoc == MemoryLocation()) { ModRefInfo I = AA.getModRefInfo(DefInst, UseCS); return I != MRI_NoModRef; }