Skip to content

Commit 8a417e7

Browse files
committed
Add nullptr assert for odin-lang#5875
1 parent a08f313 commit 8a417e7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/check_type.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1633,6 +1633,8 @@ gb_internal bool is_expr_from_a_parameter(CheckerContext *ctx, Ast *expr) {
16331633
} else if (expr->kind == Ast_Ident) {
16341634
Operand x= {};
16351635
Entity *e = check_ident(ctx, &x, expr, nullptr, nullptr, true);
1636+
GB_ASSERT(e != nullptr);
1637+
16361638
if (e->flags & EntityFlag_Param) {
16371639
return true;
16381640
}

0 commit comments

Comments
 (0)