From 689a0c0b4955e5325c5409855632a3d4a154b41e Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Tue, 4 Jul 2017 11:23:48 +0100 Subject: *_of as keyords; Allow constant aliasing for user/built-in procedures, import names, and library names --- src/ir.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/ir.cpp') 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); -- cgit v1.2.3