summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2022-05-20 14:04:09 -0700
committerJonas Devlieghere <jonas@devlieghere.com>2022-05-20 14:15:01 -0700
commitd252d9231c4a5008a69c6791db498aaf95bda8e7 (patch)
tree33570a66e2163c1b0668ddb56cef21b38496c92c /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parenta3c3482ceb529206b0ae4e7782e5496da5e0879d (diff)
[lldb] Fix spurious assertion in PrintCommandOutput
When the string passed to PrintCommandOutput doesn't end with a newline, `written` will exceed `size` and result in an lldbassert. After 8e776bb660dda6c51ce7ca6cea641db1f47aa9cf we don't really need written anymore and we can check whether `str` is empty instead. This patch simplifies the code and removes the assert that's no longer relevant. Differential revision: https://reviews.llvm.org/D126081
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions