compiler: Fix type of result of shortcut calculation.

From-SVN: r202717
This commit is contained in:
Ian Lance Taylor 2013-09-18 18:36:21 +00:00
parent b4efa80e56
commit 17836103ae
1 changed files with 1 additions and 1 deletions

View File

@ -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);