diff options
| -rw-r--r-- | lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp index 36027dde043..433a2297aa9 100644 --- a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp +++ b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp @@ -3493,6 +3493,7 @@ size_t ObjectFileELF::ReadSectionData(Section *section, if (!Decompressor) { LLDB_LOG(log, "Unable to initialize decompressor for section {0}: {1}", section->GetName(), llvm::toString(Decompressor.takeError())); + consumeError(Decompressor.takeError()); return result; } auto buffer_sp = @@ -3502,6 +3503,7 @@ size_t ObjectFileELF::ReadSectionData(Section *section, size_t(buffer_sp->GetByteSize())})) { LLDB_LOG(log, "Decompression of section {0} failed: {1}", section->GetName(), llvm::toString(std::move(Error))); + consumeError(std::move(Error)); return result; } section_data.SetData(buffer_sp); |

