[llvm] [MsgPack] Return an Error instead of bool from readFromBlob (PR #74357)
Alexander Richardson via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 4 14:41:27 PST 2023
================
@@ -187,7 +186,9 @@ bool Document::readFromBlob(
Node = getArrayNode();
break;
default:
- return false; // Raw and Extension not supported
+ return make_error<StringError>(
+ "Raw and Extension not supported",
----------------
arichardson wrote:
Maybe "Unsupported object type"?
https://github.com/llvm/llvm-project/pull/74357
More information about the llvm-commits
mailing list