From 97247bbb531bf82382a3c1ed20460d033f1b064b Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Thu, 2 Dec 2010 18:33:11 -0800 Subject: [PATCH] Change order of basic blocks in copy_ty, makes nicer disassembly. --- src/comp/middle/trans.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs index b05f70d5811..58d700e5b37 100644 --- a/src/comp/middle/trans.rs +++ b/src/comp/middle/trans.rs @@ -468,8 +468,8 @@ fn incr_refcnt(@block_ctxt cx, ValueRef box_ptr) -> result { C_int(abi.box_rc_field_refcnt))); 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 next_cx = new_sub_block_ctxt(cx, "next"); auto const_test = cx.build.ICmp(lib.llvm.LLVMIntEQ, C_int(abi.const_refcount as int), rc);