msgpack: Improve error for empty node

This commit is contained in:
Sebastian Neubauer 2020-10-27 11:30:01 +01:00
parent f8a3b9b06c
commit 673f2f702b
1 changed files with 2 additions and 1 deletions

View File

@ -277,6 +277,8 @@ void Document::writeToBlob(std::string &Blob) {
case Type::String:
MPWriter.write(Node.getString());
break;
case Type::Empty:
llvm_unreachable("unhandled empty msgpack node");
default:
llvm_unreachable("unhandled msgpack object kind");
}
@ -310,4 +312,3 @@ void Document::writeToBlob(std::string &Blob) {
}
}
}