Skip to content

Commit 75c4339

Browse files
committed
[clang][Interp][NFC] Implement dumping Invalid/Valid results
This was just an omission from an earlier commit, clearly we can print them.
1 parent 3be7979 commit 75c4339

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

clang/lib/AST/Interp/EvaluationResult.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,12 @@ void EvaluationResult::dump() const {
186186
OS << "\n";
187187
break;
188188
}
189-
190-
default:
191-
llvm_unreachable("Can't print that.");
189+
case Invalid:
190+
OS << "Invalid\n";
191+
break;
192+
case Valid:
193+
OS << "Valid\n";
194+
break;
192195
}
193196
}
194197

0 commit comments

Comments
 (0)