about summary refs log tree commit diff
path: root/src/boot/me
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2010-07-01 11:11:07 -0700
committerGraydon Hoare <graydon@mozilla.com>2010-07-01 11:11:07 -0700
commitbb3aad72c40e2ea3b7f309ed0ad162ac8f726310 (patch)
treef08e043d636e92544dcaf975c43527890777ea36 /src/boot/me
parenta7016ade65b4870e6b270dee3affa640b72c8a29 (diff)
downloadrust-bb3aad72c40e2ea3b7f309ed0ad162ac8f726310.tar.gz
rust-bb3aad72c40e2ea3b7f309ed0ad162ac8f726310.zip
Remove redundant indirection-function.
Diffstat (limited to 'src/boot/me')
-rw-r--r--src/boot/me/trans.ml6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/boot/me/trans.ml b/src/boot/me/trans.ml
index 9e8cfb14e71..d93a66e9a50 100644
--- a/src/boot/me/trans.ml
+++ b/src/boot/me/trans.ml
@@ -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 =