Commit 7892de0c by Ian Lance Taylor

Don't crash when copying a call with no arguments.

From-SVN: r167897
parent f7480e3b
......@@ -1235,7 +1235,10 @@ class Call_expression : public Expression
Expression*
do_copy()
{
return Expression::make_call(this->fn_->copy(), this->args_->copy(),
return Expression::make_call(this->fn_->copy(),
(this->args_ == NULL
? NULL
: this->args_->copy()),
this->is_varargs_, this->location());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment