]> git.lizzy.rs Git - rust.git/commitdiff
Rebase fixes
authorMark Simulacrum <mark.simulacrum@gmail.com>
Mon, 19 Dec 2016 00:31:54 +0000 (17:31 -0700)
committerMark Simulacrum <mark.simulacrum@gmail.com>
Wed, 21 Dec 2016 03:03:33 +0000 (20:03 -0700)
src/librustc_trans/adt.rs

index a59e2fe506f48da9172a689d5648985c7065433a..49a6fa22c49fe25e0c7062856ec04f8a935a3a89 100644 (file)
@@ -567,10 +567,8 @@ fn struct_field_ptr<'a, 'tcx>(
     ix: usize,
     needs_cast: bool
 ) -> ValueRef {
-    let ccx = bcx.ccx();
     let fty = fields[ix];
     let ccx = bcx.ccx();
-    let ll_fty = type_of::in_memory_type_of(ccx, fty);
 
     let ptr_val = if needs_cast {
         let fields = st.field_index_by_increasing_offset().map(|i| {