[clang] [ASAN] For Asan instrumented global, emit two symbols, one with actual size and other with instrumented size. (PR #70166)

via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 25 00:03:51 PDT 2023


================
@@ -868,14 +881,27 @@ void AsmPrinter::emitGlobalVariable(const GlobalVariable *GV) {
 
   MCSymbol *EmittedInitSym = GVSym;
 
+  if (GV->hasAttribute(Attribute::SanitizeAddress)) {
----------------
skc7 wrote:

This would be replaced by "asan_instrumented" attribute, once #68865 gets accepted.

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


More information about the cfe-commits mailing list