summaryrefslogtreecommitdiff
path: root/gcc/go
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2013-09-18 18:36:21 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2013-09-18 18:36:21 +0000
commit0b73f0d63a0b80e0cbaaf786799b97085e20a9ef (patch)
treee212e72ba8bf8210864062dd279d7ce2c33dbc44 /gcc/go
parentc79d2ed38d015cd21c906442513a647a6ef89042 (diff)
downloadgcc-0b73f0d63a0b80e0cbaaf786799b97085e20a9ef.tar.gz
compiler: Fix type of result of shortcut calculation.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@202717 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/go')
-rw-r--r--gcc/go/gofrontend/gogo.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/go/gofrontend/gogo.cc b/gcc/go/gofrontend/gogo.cc
index be8ec5939f3..17cbb6b9b49 100644
--- a/gcc/go/gofrontend/gogo.cc
+++ b/gcc/go/gofrontend/gogo.cc
@@ -2367,7 +2367,7 @@ Shortcuts::convert_shortcut(Block* enclosing, Expression** pshortcut)
Block* retblock = new Block(enclosing, loc);
retblock->set_end_location(loc);
- Temporary_statement* ts = Statement::make_temporary(Type::lookup_bool_type(),
+ Temporary_statement* ts = Statement::make_temporary(shortcut->type(),
left, loc);
retblock->add_statement(ts);