We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f44fea8 commit 39b0563Copy full SHA for 39b0563
src/comp/middle/trans.rs
@@ -4932,12 +4932,6 @@ fn trans_constant(&@crate_ctxt cx, @ast.item it) -> @crate_ctxt {
4932
case (ast.item_tag(_, ?variants, _, ?tag_id)) {
4933
auto info = cx.tags.get(mk_plain_tag(tag_id));
4934
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
-
4941
auto i = 0u;
4942
auto n_variants = _vec.len[ast.variant](variants);
4943
while (i < n_variants) {
0 commit comments