diff options
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index a1141905e..ed1988a5b 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -5639,6 +5639,13 @@ void ir_build_constant_value_decl(irProcedure *proc, AstNodeValueDecl *vd) { GB_ASSERT(ident->kind == AstNode_Ident); Entity *e = entity_of_ident(proc->module->info, ident); GB_ASSERT(e != NULL); + switch (e->kind) { + case Entity_TypeName: + case Entity_Procedure: + break; + default: + continue; + } bool polymorphic = is_type_polymorphic(e->type); |