diff options
| author | gingerBill <bill@gingerbill.org> | 2021-05-31 20:33:14 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-05-31 20:33:14 +0100 |
| commit | 4d80f8598db5541ae9466799feaaa909398d53b4 (patch) | |
| tree | 694b42f525311485946841cc95f61895f314139c /src/checker.cpp | |
| parent | bc4591fc1e8a4ab1b6736b5a86c4ce55117d335a (diff) | |
Fix polymorphic record "too few" lacking error message
Diffstat (limited to 'src/checker.cpp')
| -rw-r--r-- | src/checker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/checker.cpp b/src/checker.cpp index 8f426f116..2986ccb1a 100644 --- a/src/checker.cpp +++ b/src/checker.cpp @@ -937,7 +937,7 @@ Type *type_of_expr(Ast *expr) { } Entity *implicit_entity_of_node(Ast *clause) { - if (clause->kind == Ast_CaseClause) { + if (clause != nullptr && clause->kind == Ast_CaseClause) { return clause->CaseClause.implicit_entity; } return nullptr; |