diff options
author | Ross Brunton <ross@codeplay.com> | 2025-05-02 13:37:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-02 07:37:19 -0500 |
commit | f6ac5276ee364b3b22ce746439e0ce3224dc9091 (patch) | |
tree | fac9a53992f518f4b0c728866a8b1b8371b990d5 /lldb/source/Commands/CommandObjectProcess.cpp | |
parent | cffb8aee140ce0c022060941b7b60025dd70395c (diff) | |
download | llvm-f6ac5276ee364b3b22ce746439e0ce3224dc9091.zip llvm-f6ac5276ee364b3b22ce746439e0ce3224dc9091.tar.gz llvm-f6ac5276ee364b3b22ce746439e0ce3224dc9091.tar.bz2 |
[Offload] Ensure all `llvm::Error`s are handled (#137339)
`llvm::Error`s containing errors must be explicitly handled or an assert
will be raised. With this change, `ol_impl_result_t` can accept and
consume an `llvm::Error` for errors raised by PluginInterface that have
multiple causes and other places now call `llvm::consumeError`.
Note that there is currently no facility for PluginInterface to
communicate exact error codes, but the constructor is designed in
such a way that it can be easily added later. This MR is to
convert a crash into an error code.
A new test was added, however due to the aforementioned issue with
error codes, it does not pass and instead is marked as a skip.
Diffstat (limited to 'lldb/source/Commands/CommandObjectProcess.cpp')
0 files changed, 0 insertions, 0 deletions