Skip to content

Commit

Permalink
Fix bug for ! in old trans
Browse files Browse the repository at this point in the history
  • Loading branch information
canndrew committed Aug 15, 2016
1 parent 0add394 commit f59f1f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_trans/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f59f1f0

Please sign in to comment.