[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:55 PDT 2023
================
@@ -1100,7 +1100,7 @@ bool AccessAnalysis::canCheckPtrAtRT(RuntimePointerChecking &RtCheck,
// collect MemAccessInfos for later.
SmallVector<MemAccessInfo, 4> AccessInfos;
for (const auto &A : AS) {
- Value *Ptr = A.getValue();
+ Value *Ptr = const_cast<Value *>(A.Ptr);
----------------
jdoerfert wrote:
All these const casts are ugly, but probably better to have them explicit.
https://github.com/llvm/llvm-project/pull/65731
More information about the llvm-commits
mailing list