diff options
| author | Sean Callanan <scallanan@apple.com> | 2010-10-19 20:15:00 +0000 | 
|---|---|---|
| committer | Sean Callanan <scallanan@apple.com> | 2010-10-19 20:15:00 +0000 | 
| commit | c57f64d1bf00b587b469502ab63608a45558641d (patch) | |
| tree | 0dec79851d1b6f3244e1f2012a7db71d6f1570c6 | |
| parent | a4fefc1949c1fa23225072d3cd0fa64e00980a80 (diff) | |
| download | bcm5719-llvm-c57f64d1bf00b587b469502ab63608a45558641d.tar.gz bcm5719-llvm-c57f64d1bf00b587b469502ab63608a45558641d.zip  | |
Fixed the message that reports that an expression
did not return a result.  The result is nonexistent
(or void), not NULL.
llvm-svn: 116855
| -rw-r--r-- | lldb/source/Expression/ClangUserExpression.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Expression/ClangUserExpression.cpp b/lldb/source/Expression/ClangUserExpression.cpp index 50fffd0c7ef..7a28f97bb1c 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  | 

