Skip to content

Commit 5ab7c28

Browse files
[CodeGen] Modernize PeepholeProtection (NFC)
1 parent e7ee15e commit 5ab7c28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/CodeGen/CodeGenFunction.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1255,11 +1255,11 @@ class CodeGenFunction : public CodeGenTypeCache {
12551255
/// destroyed by aggressive peephole optimizations that assume that
12561256
/// all uses of a value have been realized in the IR.
12571257
class PeepholeProtection {
1258-
llvm::Instruction *Inst;
1258+
llvm::Instruction *Inst = nullptr;
12591259
friend class CodeGenFunction;
12601260

12611261
public:
1262-
PeepholeProtection() : Inst(nullptr) {}
1262+
PeepholeProtection() = default;
12631263
};
12641264

12651265
/// A non-RAII class containing all the information about a bound

0 commit comments

Comments
 (0)