[all-commits] [llvm/llvm-project] fe63db: [lldb] Remove asserts in CommandReturnObject SetEr...
David Spickett via All-commits
all-commits at lists.llvm.org
Wed Jun 23 06:11:26 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fe63db25bcc0dd31fc471f60591a0f24ee8dbf57
https://github.com/llvm/llvm-project/commit/fe63db25bcc0dd31fc471f60591a0f24ee8dbf57
Author: David Spickett <david.spickett at linaro.org>
Date: 2021-06-23 (Wed, 23 Jun 2021)
Changed paths:
M lldb/source/Interpreter/CommandReturnObject.cpp
Log Message:
-----------
[lldb] Remove asserts in CommandReturnObject SetError and AppendError
I added asserts to these in https://reviews.llvm.org/D104525.
They are available (directly or otherwise) via the API so we
should not assert.
Restore the previous behaviour. If the message
is empty, we return early before printing anything.
For SetError don't assert that the error is a failure.
The remaining assert is in AppendRawError which
is not part of the API.
Reviewed By: teemperor
Differential Revision: https://reviews.llvm.org/D104778
More information about the All-commits
mailing list