mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
cleanup
This commit is contained in:
parent
63e1374aaa
commit
d80deb37cd
2 changed files with 8 additions and 10 deletions
|
@ -1029,9 +1029,7 @@ pub fn build_exp_expr<'a, 'ctx, 'env>(
|
||||||
|
|
||||||
call.set_call_convention(FAST_CALL_CONV);
|
call.set_call_convention(FAST_CALL_CONV);
|
||||||
|
|
||||||
let result = call.try_as_basic_value();
|
let _ = call.try_as_basic_value();
|
||||||
|
|
||||||
dbg!(result);
|
|
||||||
}
|
}
|
||||||
None => {
|
None => {
|
||||||
panic!("")
|
panic!("")
|
||||||
|
@ -1868,7 +1866,7 @@ fn lookup_at_index_ptr2<'a, 'ctx, 'env>(
|
||||||
builder.build_bitcast(
|
builder.build_bitcast(
|
||||||
result,
|
result,
|
||||||
opaque_wrapper_type.ptr_type(AddressSpace::Generic),
|
opaque_wrapper_type.ptr_type(AddressSpace::Generic),
|
||||||
"cast_rec_pointer_lookup_at_index_ptr",
|
"cast_rec_pointer_lookup_at_index_ptr_new",
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
result
|
result
|
||||||
|
|
|
@ -753,12 +753,6 @@ impl<'a> Context<'a> {
|
||||||
arguments,
|
arguments,
|
||||||
}) => self.visit_call(z, call_type, arguments, l, b, b_live_vars),
|
}) => self.visit_call(z, call_type, arguments, l, b, b_live_vars),
|
||||||
|
|
||||||
EmptyArray | Literal(_) | Reset(_) | RuntimeErrorFunction(_) => {
|
|
||||||
// EmptyArray is always stack-allocated
|
|
||||||
// function pointers are persistent
|
|
||||||
self.arena.alloc(Stmt::Let(z, v, l, b))
|
|
||||||
}
|
|
||||||
|
|
||||||
StructAtIndex { structure: x, .. } => {
|
StructAtIndex { structure: x, .. } => {
|
||||||
let b = self.add_dec_if_needed(x, b, b_live_vars);
|
let b = self.add_dec_if_needed(x, b, b_live_vars);
|
||||||
let info_x = self.get_var_info(x);
|
let info_x = self.get_var_info(x);
|
||||||
|
@ -794,6 +788,12 @@ impl<'a> Context<'a> {
|
||||||
|
|
||||||
self.arena.alloc(Stmt::Let(z, v, l, b))
|
self.arena.alloc(Stmt::Let(z, v, l, b))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EmptyArray | Literal(_) | Reset(_) | RuntimeErrorFunction(_) => {
|
||||||
|
// EmptyArray is always stack-allocated
|
||||||
|
// function pointers are persistent
|
||||||
|
self.arena.alloc(Stmt::Let(z, v, l, b))
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
(new_b, live_vars)
|
(new_b, live_vars)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue