[vala/staging] vala: Don't analyze error-type of errornous catch-clauses
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] vala: Don't analyze error-type of errornous catch-clauses
- Date: Thu, 20 Feb 2020 14:36:45 +0000 (UTC)
commit 98fd2b1d7a669096bfa1e90e65313e1dc8200449
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Thu Feb 20 15:26:46 2020 +0100
vala: Don't analyze error-type of errornous catch-clauses
vala/valaflowanalyzer.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/vala/valaflowanalyzer.vala b/vala/valaflowanalyzer.vala
index 978ab94f8..03aae237f 100644
--- a/vala/valaflowanalyzer.vala
+++ b/vala/valaflowanalyzer.vala
@@ -987,7 +987,7 @@ public class Vala.FlowAnalyzer : CodeVisitor {
var error_block = new BasicBlock ();
all_basic_blocks.add (error_block);
- if (catch_clause.error_type != null) {
+ if (catch_clause.error_type != null && !catch_clause.error) {
if (context.profile == Profile.GOBJECT) {
unowned ErrorType error_type = (ErrorType) catch_clause.error_type;
jump_stack.add (new JumpTarget.error_target (error_block,
catch_clause, catch_clause.error_type.type_symbol as ErrorDomain, error_type.error_code, null));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]