From c57f64d1bf00b587b469502ab63608a45558641d Mon Sep 17 00:00:00 2001 From: Sean Callanan Date: Tue, 19 Oct 2010 20:15:00 +0000 Subject: [PATCH] Fixed the message that reports that an expression did not return a result. The result is nonexistent (or void), not NULL. llvm-svn: 116855 --- lldb/source/Expression/ClangUserExpression.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lldb/source/Expression/ClangUserExpression.cpp b/lldb/source/Expression/ClangUserExpression.cpp index 50fffd0c7ef7..7a28f97bb1c1 100644 --- a/lldb/source/Expression/ClangUserExpression.cpp +++ b/lldb/source/Expression/ClangUserExpression.cpp @@ -422,13 +422,13 @@ ClangUserExpression::Evaluate (ExecutionContext &exe_ctx, const char *expr_cstr) } else { - error.SetErrorString ("NULL expression result"); + error.SetErrorString ("Expression did not return a result"); } } } + if (result_valobj_sp.get() == NULL) result_valobj_sp.reset (new ValueObjectConstResult (error)); return result_valobj_sp; - } \ No newline at end of file