Change order of basic blocks in copy_ty, makes nicer disassembly.

This commit is contained in:
Graydon Hoare 2010-12-02 18:33:11 -08:00
parent f69b4417e6
commit 97247bbb53

View file

@ -468,8 +468,8 @@ fn incr_refcnt(@block_ctxt cx, ValueRef box_ptr) -> result {
C_int(abi.box_rc_field_refcnt))); C_int(abi.box_rc_field_refcnt)));
auto rc = cx.build.Load(rc_ptr); auto rc = cx.build.Load(rc_ptr);
auto next_cx = new_sub_block_ctxt(cx, "next");
auto rc_adj_cx = new_sub_block_ctxt(cx, "rc++"); auto rc_adj_cx = new_sub_block_ctxt(cx, "rc++");
auto next_cx = new_sub_block_ctxt(cx, "next");
auto const_test = cx.build.ICmp(lib.llvm.LLVMIntEQ, auto const_test = cx.build.ICmp(lib.llvm.LLVMIntEQ,
C_int(abi.const_refcount as int), rc); C_int(abi.const_refcount as int), rc);