diff options
| author | Lindsey Kuper <lkuper@mozilla.com> | 2011-07-15 10:52:10 -0700 |
|---|---|---|
| committer | Lindsey Kuper <lkuper@mozilla.com> | 2011-07-15 10:55:31 -0700 |
| commit | a716eb28ecc8fcd16c9d2595e989601efaab3b1a (patch) | |
| tree | 5549ef246ad79cb83fb72761fa4315c633eb83ea /src/comp/middle | |
| parent | 47052ce19ed5493dbed64dd20ad3c629394bd651 (diff) | |
| download | rust-a716eb28ecc8fcd16c9d2595e989601efaab3b1a.tar.gz rust-a716eb28ecc8fcd16c9d2595e989601efaab3b1a.zip | |
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.
Diffstat (limited to 'src/comp/middle')
| -rw-r--r-- | src/comp/middle/trans.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs index 78f72124f3d..4a1fd810174 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); } |
