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); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits