[clang] [ASAN] Adjust asan instrumented GlobalVariable size to not include redzone (PR #66666)

via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 20 08:40:00 PDT 2023


skc7 wrote:

Clang codegen seems to add the SanitizerMetadata for globals, but when asan pass is run, some globals seems to have lost that. So I'm checking in asan pass if globals hasSanitizerMetadata() and if not present, adding one, with NoAddress set to false. 
This is used in AsmPrinter, to identify the asan instrumented globals with padded redzones.

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


More information about the cfe-commits mailing list