aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/BinaryFormat/MsgPackDocument.cpp
diff options
context:
space:
mode:
authorSebastian Neubauer <sebastian.neubauer@amd.com>2020-10-27 11:30:01 +0100
committerSebastian Neubauer <sebastian.neubauer@amd.com>2020-10-27 12:57:00 +0100
commit673f2f702b03be8c003889cbb5923e111c3e24d0 (patch)
tree5a2b0e0dad45a6d75c949c35d686e9cbbd08205a /llvm/lib/BinaryFormat/MsgPackDocument.cpp
parentf8a3b9b06c4a46fe2a83ec52f8e396d335b44fdd (diff)
downloadllvm-673f2f702b03be8c003889cbb5923e111c3e24d0.zip
llvm-673f2f702b03be8c003889cbb5923e111c3e24d0.tar.gz
llvm-673f2f702b03be8c003889cbb5923e111c3e24d0.tar.bz2
msgpack: Improve error for empty node
Diffstat (limited to 'llvm/lib/BinaryFormat/MsgPackDocument.cpp')
-rw-r--r--llvm/lib/BinaryFormat/MsgPackDocument.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/BinaryFormat/MsgPackDocument.cpp b/llvm/lib/BinaryFormat/MsgPackDocument.cpp
index 53720c5..81ea4ce 100644
--- a/llvm/lib/BinaryFormat/MsgPackDocument.cpp
+++ b/llvm/lib/BinaryFormat/MsgPackDocument.cpp
@@ -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) {
}
}
}
-