]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Fix temporary variable handling in switch expressions, fixes bug 559278
authorJürg Billeter <j@bitron.ch>
Thu, 18 Dec 2008 00:02:48 +0000 (00:02 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Thu, 18 Dec 2008 00:02:48 +0000 (00:02 +0000)
2008-12-18  Jürg Billeter  <j@bitron.ch>

* gobject/valaccodecontrolflowmodule.vala:

Fix temporary variable handling in switch expressions,
fixes bug 559278

svn path=/trunk/; revision=2209

ChangeLog
gobject/valaccodecontrolflowmodule.vala

index eb8de3d3b668c94779e7508b311132e44680d6f6..a7fb5ab5533ba95fe273112bc79e61f80f7075cd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-12-18  Jürg Billeter  <j@bitron.ch>
+
+       * gobject/valaccodecontrolflowmodule.vala:
+
+       Fix temporary variable handling in switch expressions,
+       fixes bug 559278
+
 2008-12-18  Jürg Billeter  <j@bitron.ch>
 
        * gobject/valaccodebasemodule.vala:
index 5d435e5fad94c31611c41b9849416e303edb93bd..c88d9bbe2ea8f5bf3a41a292a7e4951873bbf479 100644 (file)
@@ -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) {