Skip to content

Commit

Permalink
remove unneeded drop of isize
Browse files Browse the repository at this point in the history
  • Loading branch information
arielb1 committed Feb 8, 2017
1 parent 09825de commit 7ce1f51
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/librustc_trans/glue.rs
Expand Up @@ -494,10 +494,6 @@ fn drop_structural_ty<'a, 'tcx>(
layout::StructWrappedNullablePointer { .. } => {
let lldiscrim_a = adt::trans_get_discr(
&cx, t, ptr.llval, ptr.alignment, None, false);
let tcx = cx.tcx();
// FIXME: why are dropping an isize?
drop_ty(&cx, LvalueRef::new_sized_ty(lldiscrim_a, tcx.types.isize,
ptr.alignment));

// Create a fall-through basic block for the "else" case of
// the switch instruction we're about to generate. Note that
Expand Down

0 comments on commit 7ce1f51

Please sign in to comment.