From 203e33b611f56b3220ecafcbb82fa15c4de0e2b7 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Sat, 2 Apr 2011 18:47:39 -0400 Subject: Make join_results branch into the join block even when only one edge is live. I don't don't totally understand the implications of this but it makes the behavior consistent for all live edges, which is going to make joining the arms of an alt expression work correctly. --- src/comp/middle/trans.rs | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src') diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs index b16acfd9..f297d329 100644 --- a/src/comp/middle/trans.rs +++ b/src/comp/middle/trans.rs @@ -3045,12 +3045,6 @@ fn join_results(@block_ctxt parent_cx, ret ins.(0); } - case (1u) { - // Only one incoming edge is live, so we just feed that block - // onward. - ret live.(0); - } - case (_) { /* fall through */ } } -- cgit v1.2.3