summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrinceton Ferro <princetonferro@gmail.com>2020-01-18 20:03:37 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2020-01-20 16:29:13 +0100
commit217c84bcd1f1f4884e9fda044b6af9e140f8fe94 (patch)
tree4a4264911f61d188e43e3f888d8a67877e8fa459
parent98ab3da89640b8b8a6c67044b4df1194672774bb (diff)
downloadvala-217c84bcd1f1f4884e9fda044b6af9e140f8fe94.tar.gz
vala: Always bail if there are semantic errors
Previously introduced by 1430c461d4a45026331663989113feb195588255
-rw-r--r--vala/valacodecontext.vala4
1 files changed, 3 insertions, 1 deletions
diff --git a/vala/valacodecontext.vala b/vala/valacodecontext.vala
index 9bce9f19d..1c3ad77cd 100644
--- a/vala/valacodecontext.vala
+++ b/vala/valacodecontext.vala
@@ -520,7 +520,9 @@ public class Vala.CodeContext {
analyzer.analyze (this);
- if (!keep_going && report.get_errors () > 0) {
+ // Don't run the FlowAnalyzer if we have semantic errors, since
+ // the messages from FlowAnalyzer will usually be nonsensical.
+ if (report.get_errors () > 0) {
return;
}