[llvm] [AST] Don't merge memory locations in AliasSetTracker (PR #65731)

Johannes Doerfert via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 9 13:15:58 PDT 2023


================
@@ -671,7 +671,7 @@ class AccessAnalysis {
   /// Register a store.
   void addStore(MemoryLocation &Loc, Type *AccessTy) {
     Value *Ptr = const_cast<Value*>(Loc.Ptr);
-    AST.add(Ptr, LocationSize::beforeOrAfterPointer(), Loc.AATags);
+    AST.add(Loc.getWithNewSize(LocationSize::beforeOrAfterPointer()));
----------------
jdoerfert wrote:

This one and above are unrelated, right? Just pre-commit as they seem clearly better.

https://github.com/llvm/llvm-project/pull/65731


More information about the llvm-commits mailing list