From a716eb28ecc8fcd16c9d2595e989601efaab3b1a Mon Sep 17 00:00:00 2001 From: Lindsey Kuper Date: Fri, 15 Jul 2011 10:52:10 -0700 Subject: [PATCH] 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. --- src/comp/middle/trans.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs index 78f72124f3d7..4a1fd8101740 100644 --- a/src/comp/middle/trans.rs +++ b/src/comp/middle/trans.rs @@ -6510,9 +6510,6 @@ fn trans_anon_obj(@block_ctxt bcx, &span sp, &ast::anon_obj anon_obj, bcx.build.Store(p, pair_box); } - // Cast the final object to how we want its type to appear. - pair = bcx.build.PointerCast(pair, T_ptr(ccx.rust_object_type)); - // return the object we built. ret rslt(bcx, pair); }