[clang] 5ab7c28 - [CodeGen] Modernize PeepholeProtection (NFC)
Kazu Hirata via cfe-commits
cfe-commits at lists.llvm.org
Sun Aug 27 09:24:42 PDT 2023
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
More information about the cfe-commits
mailing list