Commit 032120b2 by Ian Lance Taylor

compiler: Don't crash if receiver name is _.

From-SVN: r183359
parent 435bcccd
......@@ -637,7 +637,8 @@ Gogo::start_function(const std::string& name, Function_type* type,
++count;
name = buf;
}
block->bindings()->add_variable(name, NULL, this_param);
if (!Gogo::is_sink_name(name))
block->bindings()->add_variable(name, NULL, this_param);
}
const Typed_identifier_list* parameters = type->parameters();
......
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