Skip to content

Commit f59f1f0

Browse files
committed
Fix bug for ! in old trans
1 parent 0add394 commit f59f1f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_trans/expr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ fn apply_adjustments<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
385385
let mono_target = bcx.monomorphize(target);
386386
let llty = type_of::type_of(bcx.ccx(), mono_target);
387387
let dummy = C_undef(llty.ptr_to());
388-
datum = Datum::new(dummy, mono_target, Rvalue::new(ByRef)).to_expr_datum();
388+
datum = Datum::new(dummy, mono_target, Lvalue::new("never")).to_expr_datum();
389389
}
390390
AdjustReifyFnPointer => {
391391
match datum.ty.sty {

0 commit comments

Comments
 (0)