diff options
author | Luca Bruno <lucabru@src.gnome.org> | 2014-12-24 23:20:58 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2017-05-09 13:49:28 +0200 |
commit | e42314a753a257b7e80967350a72699e7e68428e (patch) | |
tree | 3cf70c400695c1506163a8b343c3194d15d4a415 /vala/valaobjectcreationexpression.vala | |
parent | 5007588ab7b225223055f2709a275036da8138f7 (diff) | |
download | vala-e42314a753a257b7e80967350a72699e7e68428e.tar.gz |
codegen: Fix finally blocks with async yields
The Method.yield_count is not correct because in C the finally blocks may
be emitted twice.
https://bugzilla.gnome.org/show_bug.cgi?id=741929
Diffstat (limited to 'vala/valaobjectcreationexpression.vala')
-rw-r--r-- | vala/valaobjectcreationexpression.vala | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/vala/valaobjectcreationexpression.vala b/vala/valaobjectcreationexpression.vala index c4b119a44..4e5a9b958 100644 --- a/vala/valaobjectcreationexpression.vala +++ b/vala/valaobjectcreationexpression.vala @@ -358,7 +358,6 @@ public class Vala.ObjectCreationExpression : Expression { error = true; Report.error (source_reference, "yield expression not available outside async method"); } - context.analyzer.current_method.yield_count++; } // FIXME partial code duplication of MethodCall.check |