Commit 74d272a2 by Ian Lance Taylor

Don't crash when copying a function with no closure variable.

From-SVN: r168140
parent 1575c9de
......@@ -1346,7 +1346,9 @@ class Func_expression : public Expression
do_copy()
{
return Expression::make_func_reference(this->function_,
this->closure_->copy(),
(this->closure_ == NULL
? NULL
: this->closure_->copy()),
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