Fixed the message that reports that an expression

did not return a result.  The result is nonexistent
(or void), not NULL.

llvm-svn: 116855
This commit is contained in:
Sean Callanan 2010-10-19 20:15:00 +00:00
parent a4fefc1949
commit c57f64d1bf
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}