diff --git a/llvm/include/llvm/Analysis/MemorySSA.h b/llvm/include/llvm/Analysis/MemorySSA.h --- a/llvm/include/llvm/Analysis/MemorySSA.h +++ b/llvm/include/llvm/Analysis/MemorySSA.h @@ -1252,8 +1252,7 @@ // to unknown guarantees that any memory accesses that access locations // after the pointer are considered as clobbers, which is important to // catch loop carried dependences. - if (Location.Ptr && - !IsGuaranteedLoopInvariant(const_cast(Location.Ptr))) + if (!IsGuaranteedLoopInvariant(const_cast(Location.Ptr))) CurrentPair.second = Location.getWithNewSize(LocationSize::beforeOrAfterPointer()); PHITransAddr Translator(