[Lldb-commits] [lldb] 91223c9 - [lldb] Unbreak debian build after dd76375c8009
Alex Langford via lldb-commits
lldb-commits at lists.llvm.org
Tue Oct 3 16:11:46 PDT 2023
Author: Alex Langford
Date: 2023-10-03T16:11:02-07:00
New Revision: 91223c92f7f7e1a6c074a28de6b5206c22eec116
URL: https://github.com/llvm/llvm-project/commit/91223c92f7f7e1a6c074a28de6b5206c22eec116
DIFF: https://github.com/llvm/llvm-project/commit/91223c92f7f7e1a6c074a28de6b5206c22eec116.diff
LOG: [lldb] Unbreak debian build after dd76375c8009
>From the lldb-x86_64-debian buildbot:
```
/home/worker/2.0.1/lldb-x86_64-debian/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp:984:16: error: call to deleted constructor of 'llvm::Error'
return err;
^~~
/home/worker/2.0.1/lldb-x86_64-debian/llvm-project/llvm/include/llvm/Support/Error.h:189:3: note: 'Error' has been explicitly marked deleted here
Error(const Error &Other) = delete;
^
/home/worker/2.0.1/lldb-x86_64-debian/llvm-project/llvm/include/llvm/Support/Error.h:496:18: note: passing argument to parameter 'Err' here
Expected(Error Err)
^
1 error generated.
```
Added:
Modified:
lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp
index b51cf04c7b724e5..a09c68087c47659 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp
+++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp
@@ -981,7 +981,7 @@ DWARFUnit::extract(SymbolFileDWARF &dwarf, user_id_t uid,
entry = index.getFromOffset(expected_header->GetOffset());
if (entry)
if (llvm::Error err = expected_header->ApplyIndexEntry(entry))
- return err;
+ return std::move(err);
}
const llvm::DWARFDebugAbbrev *abbr = dwarf.DebugAbbrev();
More information about the lldb-commits
mailing list