[compiler-rt] b2ef297 - [NFC][hwasan] Remove default argument

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 18 17:10:25 PDT 2023


Author: Vitaly Buka
Date: 2023-09-18T17:09:55-07:00
New Revision: b2ef297b6e3d51748d6c49f345674cf9462b94e3

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

LOG: [NFC][hwasan] Remove default argument

Added: 
    

Modified: 
    compiler-rt/lib/hwasan/hwasan_report.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/hwasan/hwasan_report.cpp b/compiler-rt/lib/hwasan/hwasan_report.cpp
index d318e26c6a86849..45eff07d34c1300 100644
--- a/compiler-rt/lib/hwasan/hwasan_report.cpp
+++ b/compiler-rt/lib/hwasan/hwasan_report.cpp
@@ -37,7 +37,7 @@ namespace __hwasan {
 
 class ScopedReport {
  public:
-  ScopedReport(bool fatal = false) : fatal(fatal) {
+  explicit ScopedReport(bool fatal) : fatal(fatal) {
     Lock lock(&error_message_lock_);
     error_message_ptr_ = fatal ? &error_message_ : nullptr;
     ++hwasan_report_count;


        


More information about the llvm-commits mailing list