aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-07-04 11:23:48 +0100
committerGinger Bill <bill@gingerbill.org>2017-07-04 11:23:48 +0100
commit689a0c0b4955e5325c5409855632a3d4a154b41e (patch)
tree9b6283b8620f053f33025cf7511daef71d261d03 /src/ir.cpp
parentbc16b290ba6c2168baf1153b4c7691e679f68b46 (diff)
*_of as keyords; Allow constant aliasing for user/built-in procedures, import names, and library names
Diffstat (limited to 'src/ir.cpp')
-rw-r--r--src/ir.cpp7
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);