From 89fa950723ff4a3506e588f757735da69ff6636b Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Wed, 9 Oct 2019 17:30:15 +0200 Subject: [PATCH] :art: emit_cdef only if def --- src/emit/emit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emit/emit.c b/src/emit/emit.c index eceb2877..d5d48eec 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -1898,7 +1898,7 @@ ANN static m_bool emit_class_def(const Emitter emit, const Class_Def cdef) { if(GET_FLAG(cdef->base.type, emit))return GW_OK; const Type type = cdef->base.type; const Nspc nspc = type->nspc; - if(cdef->base.ext && !GET_FLAG(cdef->base.type->e->parent, emit)) + if(cdef->base.ext && cdef->base.type->e->parent->e->def && !GET_FLAG(cdef->base.type->e->parent, emit)) CHECK_BB(cdef_parent(emit, cdef)) SET_FLAG(type, emit); nspc_allocdata(emit->gwion->mp, nspc); -- 2.43.0