[Lldb-commits] [PATCH] D90151: Fix SBError::SetErrorToGenericError
Andy Yankovsky via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Oct 26 05:09:16 PDT 2020
werat created this revision.
werat added a reviewer: JDevlieghere.
werat added a project: LLDB.
Herald added a subscriber: lldb-commits.
werat requested review of this revision.
`SBError::SetErrorToGenericError` should call `Status::SetErrorToGenericError`, not `Status::SetErrorToErrno`.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D90151
Files:
lldb/source/API/SBError.cpp
Index: lldb/source/API/SBError.cpp
===================================================================
--- lldb/source/API/SBError.cpp
+++ lldb/source/API/SBError.cpp
@@ -118,7 +118,7 @@
LLDB_RECORD_METHOD_NO_ARGS(void, SBError, SetErrorToGenericError);
CreateIfNeeded();
- m_opaque_up->SetErrorToErrno();
+ m_opaque_up->SetErrorToGenericError();
}
void SBError::SetErrorString(const char *err_str) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90151.300643.patch
Type: text/x-patch
Size: 415 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20201026/e3e6d84c/attachment.bin>
More information about the lldb-commits
mailing list