[clang] b627bde - [Interp] Modernize State (NFC)
Kazu Hirata via cfe-commits
cfe-commits at lists.llvm.org
Sat Aug 19 00:27:23 PDT 2023
Author: Kazu Hirata
Date: 2023-08-19T00:27:12-07:00
New Revision: b627bde4d5cdbdb8c72c6a94f39e145f5cb28887
URL: https://github.com/llvm/llvm-project/commit/b627bde4d5cdbdb8c72c6a94f39e145f5cb28887
DIFF: https://github.com/llvm/llvm-project/commit/b627bde4d5cdbdb8c72c6a94f39e145f5cb28887.diff
LOG: [Interp] Modernize State (NFC)
Added:
Modified:
clang/lib/AST/Interp/State.h
Removed:
################################################################################
diff --git a/clang/lib/AST/Interp/State.h b/clang/lib/AST/Interp/State.h
index d897b7c2027561..f1e8e3618f34fe 100644
--- a/clang/lib/AST/Interp/State.h
+++ b/clang/lib/AST/Interp/State.h
@@ -71,7 +71,7 @@ class State {
virtual unsigned getCallStackDepth() = 0;
public:
- State() : InConstantContext(false) {}
+ State() = default;
/// Diagnose that the evaluation could not be folded (FF => FoldFailure)
OptionalDiagnostic
FFDiag(SourceLocation Loc,
@@ -121,7 +121,7 @@ class State {
/// Whether or not we're in a context where the front end requires a
/// constant value.
- bool InConstantContext;
+ bool InConstantContext = false;
private:
void addCallStack(unsigned Limit);
More information about the cfe-commits
mailing list