Skip to content

Commit ae98ef0

Browse files
committed
---
yaml --- r: 1503 b: refs/heads/master c: 39b0563 h: refs/heads/master i: 1501: 4a8b4f5 1499: deeb3ff 1495: b179414 1487: 51b27aa 1471: 916d26d v: v3
1 parent 5312a2d commit ae98ef0

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: f44fea8b6d77c24785fc351c5ca334df47b804b3
2+
refs/heads/master: 39b05632057a9d9e71cbf7b486c26f70c84f0c14

trunk/src/comp/middle/trans.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4932,12 +4932,6 @@ fn trans_constant(&@crate_ctxt cx, @ast.item it) -> @crate_ctxt {
49324932
case (ast.item_tag(_, ?variants, _, ?tag_id)) {
49334933
auto info = cx.tags.get(mk_plain_tag(tag_id));
49344934

4935-
auto tag_ty = llvm.LLVMResolveTypeHandle(info.th.llth);
4936-
check (llvm.LLVMCountStructElementTypes(tag_ty) == 2u);
4937-
auto elts = vec(0 as TypeRef, 0 as TypeRef);
4938-
llvm.LLVMGetStructElementTypes(tag_ty, _vec.buf[TypeRef](elts));
4939-
auto union_ty = elts.(1);
4940-
49414935
auto i = 0u;
49424936
auto n_variants = _vec.len[ast.variant](variants);
49434937
while (i < n_variants) {

0 commit comments

Comments
 (0)