Skip to content

Commit

Permalink
flambda-backend: Port #843 (Make Obj.dup use a new primitive, %obj_du…
Browse files Browse the repository at this point in the history
…p) (#2039)
  • Loading branch information
riaqn authored Nov 17, 2023
1 parent 9eb0d70 commit 0e87252
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions runtime/obj.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ CAMLprim value caml_obj_with_tag(value new_tag_v, value arg)

CAMLprim value caml_obj_dup(value arg)
{
if (!Is_block(arg)) return arg;
return caml_obj_with_tag(Val_long(Tag_val(arg)), arg);
}

Expand Down

0 comments on commit 0e87252

Please sign in to comment.