diff options
| author | gingerBill <bill@gingerbill.org> | 2024-05-09 15:56:00 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-05-09 15:56:00 +0100 |
| commit | f54977336b27c32eab52b77d94e7b1610f4350cf (patch) | |
| tree | a32a7e6647b095cefb240bf8902f78f6ade8adc0 /src/parser.cpp | |
| parent | b0f0e4d02a88b27e04d9d7241959107ce08ff592 (diff) | |
With `-vet-style`, give suggestion of separating where clauses with a comma rather than '&&'
This improves the error messages
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index 04505cbd7..6e859fe32 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -1,7 +1,7 @@ #include "parser_pos.cpp" gb_internal u64 ast_file_vet_flags(AstFile *f) { - if (f->vet_flags_set) { + if (f != nullptr && f->vet_flags_set) { return f->vet_flags; } return build_context.vet_flags; |