Author: Kazu Hirata
Date: 2023-08-27T09:24:28-07:00
New Revision: 5ab7c285fb7c7d80cc80fbef0d50125679ab8385

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

LOG: [CodeGen] Modernize PeepholeProtection (NFC)

Added: 
    

Modified: 
    clang/lib/CodeGen/CodeGenFunction.h

Removed: 
    


################################################################################
diff  --git a/clang/lib/CodeGen/CodeGenFunction.h 
b/clang/lib/CodeGen/CodeGenFunction.h
index 0741e3c40fcce6..215166f566ea65 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -1255,11 +1255,11 @@ class CodeGenFunction : public CodeGenTypeCache {
   /// destroyed by aggressive peephole optimizations that assume that
   /// all uses of a value have been realized in the IR.
   class PeepholeProtection {
-    llvm::Instruction *Inst;
+    llvm::Instruction *Inst = nullptr;
     friend class CodeGenFunction;
 
   public:
-    PeepholeProtection() : Inst(nullptr) {}
+    PeepholeProtection() = default;
   };
 
   /// A non-RAII class containing all the information about a bound


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

Reply via email to