Skip to content

Commit a716eb2

Browse files
committed
Getting rid of unnecessary casts for objects.
Now that all objects are of rust_object_type in the wake of the LLVM type system rewrite, we don't need this cast anymore.
1 parent 47052ce commit a716eb2

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/comp/middle/trans.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6510,9 +6510,6 @@ fn trans_anon_obj(@block_ctxt bcx, &span sp, &ast::anon_obj anon_obj,
65106510
bcx.build.Store(p, pair_box);
65116511
}
65126512

6513-
// Cast the final object to how we want its type to appear.
6514-
pair = bcx.build.PointerCast(pair, T_ptr(ccx.rust_object_type));
6515-
65166513
// return the object we built.
65176514
ret rslt(bcx, pair);
65186515
}

0 commit comments

Comments
 (0)