mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
add reuse info to normal Tag ir constructor
This commit is contained in:
parent
c4b0a2ec29
commit
463f739c06
8 changed files with 94 additions and 16 deletions
|
@ -838,10 +838,11 @@ trait Backend<'a> {
|
|||
tag_layout,
|
||||
tag_id,
|
||||
arguments,
|
||||
..
|
||||
reuse,
|
||||
} => {
|
||||
self.load_literal_symbols(arguments);
|
||||
self.tag(sym, arguments, tag_layout, *tag_id, None);
|
||||
let reuse = reuse.map(|ru| ru.symbol);
|
||||
self.tag(sym, arguments, tag_layout, *tag_id, reuse);
|
||||
}
|
||||
Expr::ExprBox { symbol: value } => {
|
||||
let element_layout = match self.interner().get_repr(*layout) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue