Skip to content

Commit d8092c4

Browse files
committed
fix PR 36459 post backport to beta.
1 parent c305447 commit d8092c4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/librustc_trans/mir/block.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ use common::{C_bool, C_str_slice, C_struct, C_u32, C_undef};
2323
use consts;
2424
use debuginfo::DebugLoc;
2525
use Disr;
26+
use expr;
2627
use machine::{llalign_of_min, llbitsize_of_real};
2728
use meth;
2829
use type_of;
@@ -260,8 +261,8 @@ impl<'bcx, 'tcx> MirContext<'bcx, 'tcx> {
260261
bcx.with_block(|bcx| {
261262
let scratch = base::alloc_ty(bcx, ty, "drop");
262263
base::call_lifetime_start(bcx, scratch);
263-
build::Store(bcx, lvalue.llval, base::get_dataptr(bcx, scratch));
264-
build::Store(bcx, lvalue.llextra, base::get_meta(bcx, scratch));
264+
build::Store(bcx, lvalue.llval, expr::get_dataptr(bcx, scratch));
265+
build::Store(bcx, lvalue.llextra, expr::get_meta(bcx, scratch));
265266
scratch
266267
})
267268
};

0 commit comments

Comments
 (0)