[llvm] [ASan] Allow for passing AddressSanitizer command line options through the AddressSanitizerOptions struct. (PR #72439)

Usama Hameed via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 27 11:59:45 PST 2023


================
@@ -644,18 +643,28 @@ namespace {
 
 /// AddressSanitizer: instrument the code in module to find memory bugs.
 struct AddressSanitizer {
-  AddressSanitizer(Module &M, const StackSafetyGlobalInfo *SSGI,
-                   bool CompileKernel = false, bool Recover = false,
-                   bool UseAfterScope = false,
-                   AsanDetectStackUseAfterReturnMode UseAfterReturn =
-                       AsanDetectStackUseAfterReturnMode::Runtime)
+  AddressSanitizer(
----------------
usama54321 wrote:

Ok I will do this in a separate PR

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


More information about the llvm-commits mailing list