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

From-SVN: r183359
This commit is contained in:
Ian Lance Taylor 2012-01-20 23:38:33 +00:00
parent 435bcccda6
commit 032120b225
1 changed files with 2 additions and 1 deletions

View File

@ -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();