mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-18 18:04:13 +00:00
Remove redundant indirection-function.
This commit is contained in:
parent
a7016ade65
commit
bb3aad72c4
@ -2210,13 +2210,11 @@ let trans_visitor
|
||||
(ty_align abi ty))
|
||||
(tydesc_rty abi))
|
||||
|
||||
and box_ctrl_cell (cell:Il.cell) (off:int) : Il.cell =
|
||||
and box_rc_cell (cell:Il.cell) : Il.cell =
|
||||
let off = Abi.box_rc_slot_field_refcnt in
|
||||
let (mem, _) = need_mem_cell (deref_imm cell (word_n off)) in
|
||||
word_at mem
|
||||
|
||||
and box_rc_cell (cell:Il.cell) : Il.cell =
|
||||
box_ctrl_cell cell Abi.box_rc_slot_field_refcnt
|
||||
|
||||
and box_allocation_size
|
||||
(ty:Ast.ty)
|
||||
: Il.operand =
|
||||
|
Loading…
Reference in New Issue
Block a user