]> Nishi Git Mirror - gwion.git/commitdiff
:bug: Fix builtin static item access
authorJérémie Astor <fennecdjay@gmail.com>
Thu, 12 May 2022 18:56:12 +0000 (20:56 +0200)
committerJérémie Astor <fennecdjay@gmail.com>
Thu, 12 May 2022 18:56:12 +0000 (20:56 +0200)
src/lib/object_op.c

index 12ff7c616dc77ed7e925d6825dadef7691652de2..984bf45beb52453ee3a19377f22dc688f608de5c 100644 (file)
@@ -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;