================ @@ -790,6 +790,14 @@ bool HWAddressSanitizer::ignoreAccess(Instruction *Inst, Value *Ptr) { if (SSI && SSI->stackAccessIsSafe(*Inst)) return true; } + + GlobalVariable *G = dyn_cast<GlobalVariable>(getUnderlyingObject(Ptr)); + if (G) { ---------------- fmayer wrote:
Maybe `if (GlobalVariable* G = dyn_cast<GlobalVariable>(getUnderlyingObject(Ptr)))`? https://github.com/llvm/llvm-project/pull/86774 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits