aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/go/gofrontend/gogo.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/go/gofrontend/gogo.cc b/gcc/go/gofrontend/gogo.cc
index 59a61bf..9d9bef1 100644
--- a/gcc/go/gofrontend/gogo.cc
+++ b/gcc/go/gofrontend/gogo.cc
@@ -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();