Author: Kazu Hirata Date: 2023-08-27T09:24:24-07:00 New Revision: 7866c011f806928147fa084a073b0ded88144678
URL: https://github.com/llvm/llvm-project/commit/7866c011f806928147fa084a073b0ded88144678 DIFF: https://github.com/llvm/llvm-project/commit/7866c011f806928147fa084a073b0ded88144678.diff LOG: [AST] Modernize EvalResult (NFC) Added: Modified: clang/lib/AST/ExprConstant.cpp Removed: ################################################################################ diff --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp index c6ab3758e99c1b..130cf23737f104 100644 --- a/clang/lib/AST/ExprConstant.cpp +++ b/clang/lib/AST/ExprConstant.cpp @@ -12665,9 +12665,9 @@ namespace { class DataRecursiveIntBinOpEvaluator { struct EvalResult { APValue Val; - bool Failed; + bool Failed = false; - EvalResult() : Failed(false) { } + EvalResult() = default; void swap(EvalResult &RHS) { Val.swap(RHS.Val); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits