[PATCH] D112098: [ASan] Added stack safety support in address sanitizer.

Vitaly Buka via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 4 16:14:32 PDT 2021


vitalybuka accepted this revision.
vitalybuka added inline comments.
This revision is now accepted and ready to land.


================
Comment at: llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp:1328
+      ClUseStackSafety ? &MAM.getResult<StackSafetyGlobalAnalysis>(M) : nullptr;
+  AddressSanitizer FunctionSanitizer(M, &GlobalsMD, SSGI, Options.CompileKernel,
+                                     Options.Recover, Options.UseAfterScope,
----------------
There is ::ProcessedAllocas which will be unnececary overpopulated with irrelevand allocas
Maybe add FunctionSanitizer.Reset()

But please do that  in a separate patch, this optimization is unrelated to SSGI


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D112098/new/

https://reviews.llvm.org/D112098



More information about the cfe-commits mailing list