Author: Kazu Hirata
Date: 2022-01-01T09:14:23-08:00
New Revision: 683e6ee7d04f01e068b5d17b54ac2395fb6bf554

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

LOG: [CodeGen] Remove redundant string initialization (NFC)

Identified with readability-redundant-string-init.

Added: 
    

Modified: 
    clang/lib/CodeGen/CodeGenModule.h

Removed: 
    


################################################################################
diff  --git a/clang/lib/CodeGen/CodeGenModule.h 
b/clang/lib/CodeGen/CodeGenModule.h
index f1565511f98a..7cb6935afb20 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -311,7 +311,7 @@ class CodeGenModule : public CodeGenTypeCache {
   const TargetInfo &Target;
   std::unique_ptr<CGCXXABI> ABI;
   llvm::LLVMContext &VMContext;
-  std::string ModuleNameHash = "";
+  std::string ModuleNameHash;
 
   std::unique_ptr<CodeGenTBAA> TBAA;
 


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to