Skip to content

Commit 7ce1f51

Browse files
committed
remove unneeded drop of isize
1 parent 09825de commit 7ce1f51

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/librustc_trans/glue.rs

-4
Original file line numberDiff line numberDiff line change
@@ -494,10 +494,6 @@ fn drop_structural_ty<'a, 'tcx>(
494494
layout::StructWrappedNullablePointer { .. } => {
495495
let lldiscrim_a = adt::trans_get_discr(
496496
&cx, t, ptr.llval, ptr.alignment, None, false);
497-
let tcx = cx.tcx();
498-
// FIXME: why are dropping an isize?
499-
drop_ty(&cx, LvalueRef::new_sized_ty(lldiscrim_a, tcx.types.isize,
500-
ptr.alignment));
501497

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

0 commit comments

Comments
 (0)