[compiler-rt] 872ec38 - [NFC][sanitizer] Remove unneeded "explicit"

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 17 19:41:26 PDT 2021


Author: Vitaly Buka
Date: 2021-03-17T19:41:15-07:00
New Revision: 872ec3802c3236fad2a9971656ef9e961741bcca

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

LOG: [NFC][sanitizer] Remove unneeded "explicit"

Added: 
    

Modified: 
    compiler-rt/lib/sanitizer_common/sanitizer_common.h

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/sanitizer_common/sanitizer_common.h b/compiler-rt/lib/sanitizer_common/sanitizer_common.h
index 376450c03e9d..be36baa9d14f 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_common.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_common.h
@@ -592,7 +592,7 @@ class InternalMmapVector : public InternalMmapVectorNoCtor<T> {
 
 class InternalScopedString {
  public:
-  explicit InternalScopedString() : buffer_(1) { buffer_[0] = '\0'; }
+  InternalScopedString() : buffer_(1) { buffer_[0] = '\0'; }
 
   uptr length() const { return buffer_.size() - 1; }
   void clear() {


        


More information about the llvm-commits mailing list