[all-commits] [llvm/llvm-project] 061a83: [lldb] Prevent dwim-print from showing kNoResult e...
Dave Lee via All-commits
all-commits at lists.llvm.org
Tue May 30 15:38:56 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 061a839033dc5f11c4e43fb64ed49cc85e1e5f32
https://github.com/llvm/llvm-project/commit/061a839033dc5f11c4e43fb64ed49cc85e1e5f32
Author: Dave Lee <davelee.com at gmail.com>
Date: 2023-05-30 (Tue, 30 May 2023)
Changed paths:
M lldb/source/Commands/CommandObjectDWIMPrint.cpp
M lldb/test/API/commands/dwim-print/TestDWIMPrint.py
Log Message:
-----------
[lldb] Prevent dwim-print from showing kNoResult error
Expression evaluation for `void` valued expressions sets an error using the `kNoResult`
code. Like the `expression` command, `dwim-print` should also not print such errors.
Before:
```
(lldb) dwim-print (void)printf("hi\n")
hi
Error: 'unknown error'
```
After:
```
(lldb) dwim-print (void)printf("hi\n")
hi
```
rdar://109746544
Differential Revision: https://reviews.llvm.org/D151351
More information about the All-commits
mailing list