Skip to content

Commit

Permalink
[AST] Modernize EvalResult (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazutakahirata committed Aug 27, 2023
1 parent e7eadbd commit 7866c01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang/lib/AST/ExprConstant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7866c01

Please sign in to comment.