mirror of
https://github.com/intel/llvm.git
synced 2026-01-24 08:30:34 +08:00
ClangUserExpression ctor should not crash if given a null expr_prefix char*.
llvm-svn: 117700
This commit is contained in:
@@ -38,7 +38,7 @@ using namespace lldb_private;
|
||||
ClangUserExpression::ClangUserExpression (const char *expr,
|
||||
const char *expr_prefix) :
|
||||
m_expr_text(expr),
|
||||
m_expr_prefix(expr_prefix),
|
||||
m_expr_prefix(expr_prefix ? expr_prefix : ""),
|
||||
m_transformed_text(),
|
||||
m_jit_addr(LLDB_INVALID_ADDRESS),
|
||||
m_cplusplus(false),
|
||||
@@ -483,4 +483,4 @@ ClangUserExpression::Evaluate (ExecutionContext &exe_ctx,
|
||||
result_valobj_sp.reset (new ValueObjectConstResult (error));
|
||||
|
||||
return result_valobj_sp;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user