[llvm-branch-commits] [clang] [TySan] A Type Sanitizer (Clang) (PR #76260)
Erich Keane via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Nov 25 10:50:26 PST 2024
================
@@ -5740,7 +5740,8 @@ void CodeGenModule::EmitGlobalVarDefinition(const VarDecl *D,
if (NeedsGlobalCtor || NeedsGlobalDtor)
EmitCXXGlobalVarDeclInitFunc(D, GV, NeedsGlobalCtor);
- SanitizerMD->reportGlobal(GV, *D, NeedsGlobalCtor);
+ SanitizerMD->reportGlobalToASan(GV, *D, NeedsGlobalCtor);
----------------
erichkeane wrote:
This has happened a few times, I would suggest keeping `reportGlobal` and documenting that it does BOTH of these things, and in the few cases you only need ASan, do `reportGlobalToASan`.
https://github.com/llvm/llvm-project/pull/76260
More information about the llvm-branch-commits
mailing list