mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
check inside a lambda set for whether it is reference counted
This commit is contained in:
parent
73ffce0baa
commit
334253f47f
7 changed files with 34 additions and 31 deletions
|
@ -365,7 +365,7 @@ impl<'a> LowLevelCall<'a> {
|
|||
);
|
||||
|
||||
// Increment refcount
|
||||
if self.ret_layout_raw.is_refcounted() {
|
||||
if self.ret_layout_raw.is_refcounted(backend.layout_interner) {
|
||||
let inc_fn = backend.get_refcount_fn_index(self.ret_layout, HelperOp::Inc);
|
||||
backend.code_builder.get_local(elem_local);
|
||||
backend.code_builder.i32_const(1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue