From 5bf0f9d630f16287f7977bbec1d85af9bcb432cf Mon Sep 17 00:00:00 2001 From: gingerBill Date: Fri, 23 Mar 2018 15:23:14 +0000 Subject: Fix type cycle bug --- src/types.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/types.cpp') diff --git a/src/types.cpp b/src/types.cpp index 3e8d024e4..727dd4a57 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -217,6 +217,7 @@ struct Type { }; + // TODO(bill): Should I add extra information here specifying the kind of selection? // e.g. field, constant, array field, type field, etc. struct Selection { @@ -481,12 +482,6 @@ Type *alloc_type(gbAllocator a, TypeKind kind) { } -Type *make_type_basic(gbAllocator a, BasicType basic) { - Type *t = alloc_type(a, Type_Basic); - t->Basic = basic; - return t; -} - Type *make_type_generic(gbAllocator a, Scope *scope, i64 id, String name, Type *specialized) { Type *t = alloc_type(a, Type_Generic); t->Generic.id = id; -- cgit v1.2.3