[llvm] [hwasan] Remove memory attrs from instrumented functions. (PR #92974)

Florian Mayer via llvm-commits llvm-commits at lists.llvm.org
Tue May 21 16:43:05 PDT 2024


================
@@ -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


More information about the llvm-commits mailing list