-82961ce59e8bb02598d963d2a05b3acca860d9dd
+d4875b19266d5f726e0e32843b903075f5c50b4c
The first line of this file holds the git revision number of the last
merge done from the gofrontend repository.
Location loc = this->location();
Gogo* gogo = context->gogo();
Bvariable* bvar = this->statement_->get_backend_variable(context);
- Bexpression* lvar_ref = gogo->backend()->var_expression(bvar, VE_rvalue, loc);
+ Bexpression* lvar_ref = gogo->backend()->var_expression(bvar, VE_lvalue, loc);
Named_object* fn = context->function();
go_assert(fn != NULL);
Bexpression* bexpr = this->expr_->get_backend(context);
Bstatement* set = gogo->backend()->assignment_statement(bfn, lvar_ref,
bexpr, loc);
- Bexpression* var_ref = gogo->backend()->var_expression(bvar, VE_lvalue, loc);
+ Bexpression* var_ref = gogo->backend()->var_expression(bvar, VE_rvalue, loc);
Bexpression* ret = gogo->backend()->compound_expression(set, var_ref, loc);
return ret;
}
if (ue && ue->op() == OPERATOR_MULT)
return TRAVERSE_CONTINUE;
+ Type_conversion_expression* ce = e->conversion_expression();
+ if (ce)
+ return TRAVERSE_CONTINUE;
+
+ Temporary_reference_expression* tre =
+ e->temporary_reference_expression();
+ if (tre)
+ {
+ tre = new Temporary_reference_expression(tre->statement(),
+ tre->location());
+ *ppexpr = tre;
+ tre->set_is_lvalue();
+ return TRAVERSE_EXIT;
+ }
+
return TRAVERSE_EXIT;
}