]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vala: Always bail if there are semantic errors 217c84bcd1f1f4884e9fda044b6af9e140f8fe94
authorPrinceton Ferro <princetonferro@gmail.com>
Sat, 18 Jan 2020 19:03:37 +0000 (20:03 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 20 Jan 2020 15:29:13 +0000 (16:29 +0100)
Previously introduced by 1430c461d4a45026331663989113feb195588255

vala/valacodecontext.vala

index 9bce9f19d50745a2a41ba29d5b7e78400d132245..1c3ad77cd1e69b19ead5f74551a94029a95c7c4f 100644 (file)
@@ -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;
                }