diff options
author | David Spickett <david.spickett@linaro.org> | 2021-06-18 12:17:53 +0000 |
---|---|---|
committer | David Spickett <david.spickett@linaro.org> | 2021-06-21 09:44:47 +0000 |
commit | 12ae3cb7ba5399b99c02e8a73c681192259e188f (patch) | |
tree | 6c268387bbeeeb981782f54143ff9f0c4fee13c4 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | bbd7424402c74b6a84c047657554ff7967da0e85 (diff) | |
download | llvm-12ae3cb7ba5399b99c02e8a73c681192259e188f.zip llvm-12ae3cb7ba5399b99c02e8a73c681192259e188f.tar.gz llvm-12ae3cb7ba5399b99c02e8a73c681192259e188f.tar.bz2 |
[lldb] Assert that CommandResultObject error messages are not empty
The intention is now that AppendError/SetError/AppendRawError only
be called with some message to show. This enforces that.
For SetError with a Status and a fallback string first assert
that the Status is a failure Status. Then it calls SetError(StringRef)
which checks the message is valid. (which could be the fallback
or the Status')
Reviewed By: dblaikie
Differential Revision: https://reviews.llvm.org/D104525
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions