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