Revert "add ir unknowninc instruction"

This reverts commit ebd62485df.
This commit is contained in:
Folkert 2021-05-16 21:52:30 +02:00
parent 7520dfee06
commit bb3fe92251
7 changed files with 14 additions and 56 deletions

View file

@ -289,8 +289,7 @@ pub fn list_get_unsafe<'a, 'ctx, 'env>(
let result = builder.build_load(elem_ptr, "List.get");
let n = env.ptr_int().const_int(1, false);
increment_refcount_layout(env, parent, layout_ids, n, result, elem_layout);
increment_refcount_layout(env, parent, layout_ids, 1, result, elem_layout);
result
}