Skip to content

Commit b627bde

Browse files
[Interp] Modernize State (NFC)
1 parent fbaf5cb commit b627bde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/AST/Interp/State.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class State {
7171
virtual unsigned getCallStackDepth() = 0;
7272

7373
public:
74-
State() : InConstantContext(false) {}
74+
State() = default;
7575
/// Diagnose that the evaluation could not be folded (FF => FoldFailure)
7676
OptionalDiagnostic
7777
FFDiag(SourceLocation Loc,
@@ -121,7 +121,7 @@ class State {
121121

122122
/// Whether or not we're in a context where the front end requires a
123123
/// constant value.
124-
bool InConstantContext;
124+
bool InConstantContext = false;
125125

126126
private:
127127
void addCallStack(unsigned Limit);

0 commit comments

Comments
 (0)