From: Jürg Billeter Date: Thu, 18 Dec 2008 00:02:48 +0000 (+0000) Subject: Fix temporary variable handling in switch expressions, fixes bug 559278 X-Git-Tag: VALA_0_5_4~82 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8032d7d4be0d265e9c11298aa9d3ce6a2b3f7b46;p=thirdparty%2Fvala.git Fix temporary variable handling in switch expressions, fixes bug 559278 2008-12-18 Jürg Billeter * gobject/valaccodecontrolflowmodule.vala: Fix temporary variable handling in switch expressions, fixes bug 559278 svn path=/trunk/; revision=2209 --- diff --git a/ChangeLog b/ChangeLog index eb8de3d3b..a7fb5ab55 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-12-18 Jürg Billeter + + * gobject/valaccodecontrolflowmodule.vala: + + Fix temporary variable handling in switch expressions, + fixes bug 559278 + 2008-12-18 Jürg Billeter * gobject/valaccodebasemodule.vala: diff --git a/gobject/valaccodecontrolflowmodule.vala b/gobject/valaccodecontrolflowmodule.vala index 5d435e5fa..c88d9bbe2 100644 --- a/gobject/valaccodecontrolflowmodule.vala +++ b/gobject/valaccodecontrolflowmodule.vala @@ -208,6 +208,8 @@ public class Vala.CCodeControlFlowModule : CCodeMethodModule { cblock.add_statement (body_stmt.ccodenode); } } + + create_temp_decl (stmt, stmt.expression.temp_vars); } public override void visit_switch_section (SwitchSection section) {