This commit is contained in:
Folkert 2021-07-13 00:41:46 +02:00
parent 63e1374aaa
commit d80deb37cd
2 changed files with 8 additions and 10 deletions

View File

@ -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

View File

@ -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)