From: Jérémie Astor Date: Thu, 12 May 2022 18:56:12 +0000 (+0200) Subject: :bug: Fix builtin static item access X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=670e633d00d849f9bdad39a40e104e573752cfdf;p=gwion.git :bug: Fix builtin static item access --- diff --git a/src/lib/object_op.c b/src/lib/object_op.c index 12ff7c61..984bf45b 100644 --- a/src/lib/object_op.c +++ b/src/lib/object_op.c @@ -87,8 +87,7 @@ ANN static void emit_dot_static_data(const Emitter emit, const Value v, ANN static void emit_dot_static_import_data(const Emitter emit, const Value v, const bool emit_addr) { - // if(v->d.ptr && vflag(v, vflag_builtin) && GET_FLAG(v, const)) { - if (vflag(v, vflag_builtin) && GET_FLAG(v, const)) { + if (vflag(v, vflag_builtin) /*&& GET_FLAG(v, const)*/) { const m_uint size = v->type->size; const Instr instr = emit_regpushimm(emit, size, emit_addr); instr->m_val = (m_uint)v->d.ptr;