mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Add nullptr assert for #5875
This commit is contained in:
@@ -1633,6 +1633,8 @@ gb_internal bool is_expr_from_a_parameter(CheckerContext *ctx, Ast *expr) {
|
|||||||
} else if (expr->kind == Ast_Ident) {
|
} else if (expr->kind == Ast_Ident) {
|
||||||
Operand x= {};
|
Operand x= {};
|
||||||
Entity *e = check_ident(ctx, &x, expr, nullptr, nullptr, true);
|
Entity *e = check_ident(ctx, &x, expr, nullptr, nullptr, true);
|
||||||
|
GB_ASSERT(e != nullptr);
|
||||||
|
|
||||||
if (e->flags & EntityFlag_Param) {
|
if (e->flags & EntityFlag_Param) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user