summaryrefslogtreecommitdiff
path: root/gcc/go/gofrontend/expressions.cc
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2014-12-10 20:38:13 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2014-12-10 20:38:13 +0000
commite90ecd2d2af88e03a4e3d042112367c4e35dc3b9 (patch)
tree55d23d5573be15e9f8432f098d0293e7ef1dc338 /gcc/go/gofrontend/expressions.cc
parent93633022f2517f10aa1d500681a84ffa4730d842 (diff)
downloadgcc-e90ecd2d2af88e03a4e3d042112367c4e35dc3b9.tar.gz
PR go/61316
compiler: Don't lower multi-valued arguments into temporaries. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218606 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/go/gofrontend/expressions.cc')
-rw-r--r--gcc/go/gofrontend/expressions.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/go/gofrontend/expressions.cc b/gcc/go/gofrontend/expressions.cc
index 0916adc3f3e..4d07c223b34 100644
--- a/gcc/go/gofrontend/expressions.cc
+++ b/gcc/go/gofrontend/expressions.cc
@@ -8525,6 +8525,7 @@ Call_expression::do_lower(Gogo* gogo, Named_object* function,
|| fntype->is_builtin()))
{
Call_expression* call = this->args_->front()->call_expression();
+ call->set_is_multi_value_arg();
Expression_list* args = new Expression_list;
for (size_t i = 0; i < rc; ++i)
args->push_back(Expression::make_call_result(call, i));