mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
switch over to alloca expr
This commit is contained in:
parent
cdd2aab217
commit
44d03eebfa
8 changed files with 9 additions and 67 deletions
|
@ -741,15 +741,10 @@ impl<'a> TrmcEnv<'a> {
|
|||
.interner
|
||||
.insert_direct_no_semantic(LayoutRepr::Ptr(return_layout));
|
||||
|
||||
let call = Call {
|
||||
call_type: CallType::LowLevel {
|
||||
op: LowLevel::Alloca,
|
||||
update_mode: UpdateModeId::BACKEND_DUMMY,
|
||||
},
|
||||
arguments: arena.alloc([null_symbol]),
|
||||
let ptr_null = Expr::Alloca {
|
||||
initializer: Some(null_symbol),
|
||||
element_layout: return_layout,
|
||||
};
|
||||
|
||||
let ptr_null = Expr::Call(call);
|
||||
let let_ptr = |next| Stmt::Let(initial_ptr_symbol, ptr_null, ptr_return_layout, next);
|
||||
|
||||
let joinpoint_id = JoinPointId(env.named_unique_symbol("trmc"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue