compiler: Don't crash if receiver name is _.
From-SVN: r183359
This commit is contained in:
parent
435bcccda6
commit
032120b225
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue