[llvm] eb9423a - [NFC][asan] Simplify AddressSanitizerOptions
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 2 16:49:30 PDT 2021
Author: Vitaly Buka
Date: 2021-11-02T16:49:15-07:00
New Revision: eb9423ae0e284b5265039d6300f7615c42d902df
URL: https://github.com/llvm/llvm-project/commit/eb9423ae0e284b5265039d6300f7615c42d902df
DIFF: https://github.com/llvm/llvm-project/commit/eb9423ae0e284b5265039d6300f7615c42d902df.diff
LOG: [NFC][asan] Simplify AddressSanitizerOptions
Added:
Modified:
llvm/include/llvm/Transforms/Instrumentation/AddressSanitizer.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Transforms/Instrumentation/AddressSanitizer.h b/llvm/include/llvm/Transforms/Instrumentation/AddressSanitizer.h
index d4eda186a05b3..ea18974798570 100644
--- a/llvm/include/llvm/Transforms/Instrumentation/AddressSanitizer.h
+++ b/llvm/include/llvm/Transforms/Instrumentation/AddressSanitizer.h
@@ -90,17 +90,11 @@ class ASanGlobalsMetadataAnalysis
};
struct AddressSanitizerOptions {
- AddressSanitizerOptions()
- : AddressSanitizerOptions(false, false, false,
- AsanDetectStackUseAfterReturnMode::Runtime){};
- AddressSanitizerOptions(bool CompileKernel, bool Recover, bool UseAfterScope,
- AsanDetectStackUseAfterReturnMode UseAfterReturn)
- : CompileKernel(CompileKernel), Recover(Recover),
- UseAfterScope(UseAfterScope), UseAfterReturn(UseAfterReturn){};
- bool CompileKernel;
- bool Recover;
- bool UseAfterScope;
- AsanDetectStackUseAfterReturnMode UseAfterReturn;
+ bool CompileKernel = false;
+ bool Recover = false;
+ bool UseAfterScope = false;
+ AsanDetectStackUseAfterReturnMode UseAfterReturn =
+ AsanDetectStackUseAfterReturnMode::Runtime;
};
/// Public interface to the address sanitizer pass for instrumenting code to
More information about the llvm-commits
mailing list