Fix bug for ! in old trans

This commit is contained in:
Andrew Cann 2016-08-15 13:32:12 +08:00
parent 0add394ee3
commit f59f1f0914
1 changed files with 1 additions and 1 deletions

View File

@ -385,7 +385,7 @@ fn apply_adjustments<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
let mono_target = bcx.monomorphize(target);
let llty = type_of::type_of(bcx.ccx(), mono_target);
let dummy = C_undef(llty.ptr_to());
datum = Datum::new(dummy, mono_target, Rvalue::new(ByRef)).to_expr_datum();
datum = Datum::new(dummy, mono_target, Lvalue::new("never")).to_expr_datum();
}
AdjustReifyFnPointer => {
match datum.ty.sty {