================ @@ -1589,6 +1589,10 @@ void HWAddressSanitizer::sanitizeFunction(Function &F, assert(!ShadowBase); + F.removeFnAttr(llvm::Attribute::Memory); ---------------- fmayer wrote: Please add explanatory comment here. https://github.com/llvm/llvm-project/pull/92974