aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectExpression.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2018-10-16 21:58:40 +0000
committerJim Ingham <jingham@apple.com>2018-10-16 21:58:40 +0000
commitb1ecc3cac29bdae5469e9610a1ff66f8531a503c (patch)
tree751f36f01bfa8eda4e6eb963c57fd0eb8f46d1f9 /lldb/source/Commands/CommandObjectExpression.cpp
parentd33f6e73e148b0a257facb81f100b1e731e0c910 (diff)
downloadllvm-b1ecc3cac29bdae5469e9610a1ff66f8531a503c.zip
llvm-b1ecc3cac29bdae5469e9610a1ff66f8531a503c.tar.gz
llvm-b1ecc3cac29bdae5469e9610a1ff66f8531a503c.tar.bz2
Return a named error in the result object of an expression with no result
Before we returned an error that was not exposed in the SB API and no useful error message. This change returns eExpressionProducedNoResult and an appropriate error string. <rdar://problem/44539514> Differential Revision: https://reviews.llvm.org/D53309 llvm-svn: 344647
Diffstat (limited to 'lldb/source/Commands/CommandObjectExpression.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectExpression.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectExpression.cpp b/lldb/source/Commands/CommandObjectExpression.cpp
index ac440ef..f6e4007 100644
--- a/lldb/source/Commands/CommandObjectExpression.cpp
+++ b/lldb/source/Commands/CommandObjectExpression.cpp
@@ -487,7 +487,7 @@ bool CommandObjectExpression::EvaluateExpression(llvm::StringRef expr,
}
} else {
if (result_valobj_sp->GetError().GetError() ==
- UserExpression::kNoResult) {
+ lldb::eExpressionProducedNoResult) {
if (format != eFormatVoid &&
m_interpreter.GetDebugger().GetNotifyVoid()) {
error_stream->PutCString("(void)\n");