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.
This commit is contained in:
Lindsey Kuper 2011-07-15 10:52:10 -07:00
parent 47052ce19e
commit a716eb28ec

View File

@ -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);
}