mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-10 10:02:38 +03:00
cleanup
This commit is contained in:
parent
63e1374aaa
commit
d80deb37cd
@ -1029,9 +1029,7 @@ pub fn build_exp_expr<'a, 'ctx, 'env>(
|
||||
|
||||
call.set_call_convention(FAST_CALL_CONV);
|
||||
|
||||
let result = call.try_as_basic_value();
|
||||
|
||||
dbg!(result);
|
||||
let _ = call.try_as_basic_value();
|
||||
}
|
||||
None => {
|
||||
panic!("")
|
||||
@ -1868,7 +1866,7 @@ fn lookup_at_index_ptr2<'a, 'ctx, 'env>(
|
||||
builder.build_bitcast(
|
||||
result,
|
||||
opaque_wrapper_type.ptr_type(AddressSpace::Generic),
|
||||
"cast_rec_pointer_lookup_at_index_ptr",
|
||||
"cast_rec_pointer_lookup_at_index_ptr_new",
|
||||
)
|
||||
} else {
|
||||
result
|
||||
|
@ -753,12 +753,6 @@ impl<'a> Context<'a> {
|
||||
arguments,
|
||||
}) => 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, .. } => {
|
||||
let b = self.add_dec_if_needed(x, b, b_live_vars);
|
||||
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))
|
||||
}
|
||||
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user