diff options
Diffstat (limited to 'gcc/go')
-rw-r--r-- | gcc/go/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/go/go-gcc.cc | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/go/ChangeLog b/gcc/go/ChangeLog index 947f49c..01af467 100644 --- a/gcc/go/ChangeLog +++ b/gcc/go/ChangeLog @@ -1,3 +1,8 @@ +2017-11-28 Jakub Jelinek <jakub@redhat.com> + + * go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR using + build2_loc instead of build3_loc. + 2017-11-14 Than McIntosh <thanm@google.com> * go-gcc.cc (var_expression): Remove Varexpr_context parameter. diff --git a/gcc/go/go-gcc.cc b/gcc/go/go-gcc.cc index a50abdd..1b0190d 100644 --- a/gcc/go/go-gcc.cc +++ b/gcc/go/go-gcc.cc @@ -2289,8 +2289,8 @@ Gcc_backend::switch_statement( tree tv = value->get_tree(); if (tv == error_mark_node) return this->error_statement(); - tree t = build3_loc(switch_location.gcc_location(), SWITCH_EXPR, - NULL_TREE, tv, stmt_list, NULL_TREE); + tree t = build2_loc(switch_location.gcc_location(), SWITCH_EXPR, + NULL_TREE, tv, stmt_list); return this->make_statement(t); } |