[llvm] bf12b71 - Support: Drop the no-op initializer for SignpostEmitterImpl::Signposts, NFC

Duncan P. N. Exon Smith via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 8 16:34:17 PDT 2021


Author: Duncan P. N. Exon Smith
Date: 2021-04-08T16:34:00-07:00
New Revision: bf12b711f9ec322fd7fabb6919d975665df32b29

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

LOG: Support: Drop the no-op initializer for SignpostEmitterImpl::Signposts, NFC

This is a DenseMap, which has its own initializer; we don't need to explicitly
call the default constructor here.

Differential Revision: https://reviews.llvm.org/D100152

Added: 
    

Modified: 
    llvm/lib/Support/Signposts.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Support/Signposts.cpp b/llvm/lib/Support/Signposts.cpp
index c85bab446cc5..80ef7d19e11d 100644
--- a/llvm/lib/Support/Signposts.cpp
+++ b/llvm/lib/Support/Signposts.cpp
@@ -59,7 +59,7 @@ class SignpostEmitterImpl {
   }
 
 public:
-  SignpostEmitterImpl() : SignpostLog(LogCreator(), LogDeleter), Signposts() {}
+  SignpostEmitterImpl() : SignpostLog(LogCreator(), LogDeleter) {}
 
   bool isEnabled() const {
     if (SIGNPOSTS_AVAILABLE())


        


More information about the llvm-commits mailing list