1
0
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:
Sebastian Neubauer 2020-10-27 11:30:01 +01:00
parent 49368a63f8
commit d2b71753ac

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) {
}
}
}