mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
msgpack: Improve error for empty node
This commit is contained in:
parent
49368a63f8
commit
d2b71753ac
@ -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) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user