rustc: Fix bug involving extracting any variant element beyond the first. Un-XFAIL alt-tag.rs.

This commit is contained in:
Patrick Walton 2010-12-15 10:11:33 -08:00
parent 2a8350e8d9
commit 42789c4b97
2 changed files with 2 additions and 0 deletions

View file

@ -519,6 +519,7 @@ TEST_XFAILS_LLVM := $(TASK_XFAILS) \
TEST_XFAILS_SELF := $(filter-out \ TEST_XFAILS_SELF := $(filter-out \
$(addprefix test/run-pass/, \ $(addprefix test/run-pass/, \
alt-tag.rs \
arith-0.rs \ arith-0.rs \
arith-1.rs \ arith-1.rs \
arith-2.rs \ arith-2.rs \

View file

@ -1425,6 +1425,7 @@ impure fn trans_pat_binding(@block_ctxt cx, @ast.pat pat, ValueRef llval)
auto subpat_res = trans_pat_binding(this_cx, subpat, auto subpat_res = trans_pat_binding(this_cx, subpat,
llsubval); llsubval);
this_cx = subpat_res.bcx; this_cx = subpat_res.bcx;
i += 1;
} }
ret res(this_cx, llval); ret res(this_cx, llval);