[clang] 7866c01 - [AST] Modernize EvalResult (NFC)
Kazu Hirata via cfe-commits
cfe-commits at lists.llvm.org
Sun Aug 27 09:24:39 PDT 2023
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);
More information about the cfe-commits
mailing list