[llvm] bba8a76 - [NFC][hwasan] Remove default arguments in internal class

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 15 15:28:11 PDT 2021


Author: Vitaly Buka
Date: 2021-07-15T15:28:02-07:00
New Revision: bba8a76b8736fcf005ebbd0a4fb789a22eadf9ba

URL: https://github.com/llvm/llvm-project/commit/bba8a76b8736fcf005ebbd0a4fb789a22eadf9ba
DIFF: https://github.com/llvm/llvm-project/commit/bba8a76b8736fcf005ebbd0a4fb789a22eadf9ba.diff

LOG: [NFC][hwasan] Remove default arguments in internal class

Added: 
    

Modified: 
    llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
index 014a0ce85aa8..81c60d7184f7 100644
--- a/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
@@ -220,9 +220,7 @@ bool shouldInstrumentWithCalls(const Triple &TargetTriple) {
 /// using tagged pointers.
 class HWAddressSanitizer {
 public:
-  explicit HWAddressSanitizer(Module &M, bool CompileKernel = false,
-                              bool Recover = false)
-      : M(M) {
+  HWAddressSanitizer(Module &M, bool CompileKernel, bool Recover) : M(M) {
     this->Recover = ClRecover.getNumOccurrences() > 0 ? ClRecover : Recover;
     this->CompileKernel = ClEnableKhwasan.getNumOccurrences() > 0
                               ? ClEnableKhwasan


        


More information about the llvm-commits mailing list