]> git.ipfire.org Git - thirdparty/vala.git/commit
codegen: When freeing local variables don't stop at "switch" on "continue" a929a44437a46eb9f814160c4ecf807a94ba2138
authorRico Tzschichholz <ricotz@ubuntu.com>
Fri, 17 May 2019 06:56:12 +0000 (08:56 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Fri, 17 May 2019 07:08:37 +0000 (09:08 +0200)
commita929a44437a46eb9f814160c4ecf807a94ba2138
tree666f9f8c240faba9dabc47253eceeb6b6ae8b031
parentef0973068d1786206bc98c4861f0ea9d2617edb5
codegen: When freeing local variables don't stop at "switch" on "continue"

So distinguish between BreakStatement and ContinueStatement to make the
correct decision in append_local_free().

Fixes https://gitlab.gnome.org/GNOME/vala/issues/799
codegen/valaccodebasemodule.vala
codegen/valaccodecontrolflowmodule.vala
codegen/valagasyncmodule.vala
codegen/valagerrormodule.vala
tests/Makefile.am
tests/control-flow/for-switch-continue.vala [new file with mode: 0644]