diff options
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; |