diff options
| author | Ariel Ben-Yehuda <ariel.byd@gmail.com> | 2017-02-06 17:30:03 +0100 |
|---|---|---|
| committer | Ariel Ben-Yehuda <ariel.byd@gmail.com> | 2017-02-08 22:23:21 +0100 |
| commit | 7ce1f5194c13cfbd90a40a19b93df3a2383b3b9d (patch) | |
| tree | 634793c1ac49d85eee7df02738d47da3ff43953c | |
| parent | 09825de61bb4e9a339b3c6759d73ebb4c0b6c7b1 (diff) | |
| download | rust-7ce1f5194c13cfbd90a40a19b93df3a2383b3b9d.tar.gz rust-7ce1f5194c13cfbd90a40a19b93df3a2383b3b9d.zip | |
remove unneeded drop of isize
| -rw-r--r-- | src/librustc_trans/glue.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/librustc_trans/glue.rs b/src/librustc_trans/glue.rs index ba7558b8acf..d66ea4d650f 100644 --- a/src/librustc_trans/glue.rs +++ b/src/librustc_trans/glue.rs @@ -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 |
