summaryrefslogtreecommitdiff
path: root/lib/Format/Format.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Format/Format.cpp')
-rw-r--r--lib/Format/Format.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp
index 176cb49df8..e1ec2517b4 100644
--- a/lib/Format/Format.cpp
+++ b/lib/Format/Format.cpp
@@ -272,6 +272,7 @@ const char *ParseErrorCategory::name() const LLVM_NOEXCEPT {
std::string ParseErrorCategory::message(int EV) const {
switch (static_cast<ParseError>(EV)) {
+ default: llvm_unreachable("unexpected parse error");
case ParseError::Success:
return "Success";
case ParseError::Error: