]> git.ipfire.org Git - thirdparty/vala.git/commit
codegen: When freeing local variables don't stop at "switch" on "continue"
authorRico Tzschichholz <ricotz@ubuntu.com>
Fri, 17 May 2019 06:56:12 +0000 (08:56 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Tue, 6 Aug 2019 11:54:11 +0000 (13:54 +0200)
commitcc47f0d0127bca7c6c61c8e4513e36e80c58737c
tree19e7e388a3327a0e4f19f5877fa1abbe3b32cbbf
parentbe3cf0322d407a96bdcce3a267b218ebeea14c15
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]