From: fennecdjay Date: Wed, 9 Oct 2019 15:30:15 +0000 (+0200) Subject: :art: emit_cdef only if def X-Git-Tag: nightly~2198^2~80 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=89fa950723ff4a3506e588f757735da69ff6636b;p=gwion.git :art: emit_cdef only if def --- 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);