]> Nishi Git Mirror - gwion.git/commitdiff
:art: use actual loc in ref.c
authorfennecdjay <fennecdjay@gmail.com>
Mon, 29 Jan 2024 22:52:46 +0000 (23:52 +0100)
committerfennecdjay <fennecdjay@gmail.com>
Mon, 29 Jan 2024 22:52:46 +0000 (23:52 +0100)
src/lib/ref.c

index 8b6f7c2af428c4b91a09030e81b72525a66c6c1e..3d87e42c1288930955d4fcf05277d8d6dc23c6a7 100644 (file)
@@ -164,7 +164,7 @@ static OP_CHECK(opck_ref_scan) {
   set_tflag(t, tflag_ref);
   const m_uint scope = env_push(env, base->info->value->from->owner_class,
                                 base->info->value->from->owner);
-  mk_class(env, t, (loc_t) {});
+  mk_class(env, t, ts->td->tag.loc);
   base2ref(env, base, t);
   ref2base(env, t, base);
   ref2ref(env, t, t);