mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 23:31:12 +00:00
use Ptr instead of Boxed in the code-gen-help
This commit is contained in:
parent
cde3615ec2
commit
3b18494ddd
4 changed files with 83 additions and 80 deletions
|
@ -2108,6 +2108,16 @@ impl<'a> Expr<'a> {
|
|||
w.push(b'\n');
|
||||
String::from_utf8(w).unwrap()
|
||||
}
|
||||
|
||||
pub(crate) fn ptr_load(symbol: &'a Symbol) -> Expr<'a> {
|
||||
Expr::Call(Call {
|
||||
call_type: CallType::LowLevel {
|
||||
op: LowLevel::PtrLoad,
|
||||
update_mode: UpdateModeId::BACKEND_DUMMY,
|
||||
},
|
||||
arguments: std::slice::from_ref(symbol),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> Stmt<'a> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue