Skip to content

Commit

Permalink
[clang][Interp][NFC] Implement dumping Invalid/Valid results
Browse files Browse the repository at this point in the history
This was just an omission from an earlier commit, clearly
we can print them.
  • Loading branch information
tbaederr committed Feb 2, 2024
1 parent 3be7979 commit 75c4339
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions clang/lib/AST/Interp/EvaluationResult.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,12 @@ void EvaluationResult::dump() const {
OS << "\n";
break;
}

default:
llvm_unreachable("Can't print that.");
case Invalid:
OS << "Invalid\n";
break;
case Valid:
OS << "Valid\n";
break;
}
}

Expand Down

0 comments on commit 75c4339

Please sign in to comment.