[llvm] [MsgPack] Handle Expected<T> errors in document reader (PR #73183)
Alexander Richardson via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 27 12:56:40 PST 2023
================
@@ -143,7 +143,13 @@ bool Document::readFromBlob(
// On to next element (or key if doing a map key next).
// Read the value.
Object Obj;
- if (!MPReader.read(Obj)) {
+ Expected<bool> ReadObj = MPReader.read(Obj);
+ if (!ReadObj) {
+ // FIXME: Propagate the Error to the caller.
----------------
arichardson wrote:
Do you have plans to address this in a follow-up change?
https://github.com/llvm/llvm-project/pull/73183
More information about the llvm-commits
mailing list