Skip to content

Commit

Permalink
Removed transmute from intrinsic.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
thedarkula authored and RalfJung committed Sep 1, 2018
1 parent ece98ea commit 90d7cb2
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/intrinsic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -460,14 +460,6 @@ impl<'a, 'mir, 'tcx> EvalContextExt<'tcx> for EvalContext<'a, 'mir, 'tcx, super:
self.write_value(value, dest)?;
}

"transmute" => {
// Go through an allocation, to make sure the completely different layouts
// do not pose a problem. (When the user transmutes through a union,
// there will not be a layout mismatch.)
let dest = self.force_allocation(dest)?;
self.copy_op(args[0], dest.into())?;
}

"unchecked_shl" => {
let bits = dest.layout.size.bytes() as u128 * 8;
let l = self.read_value(args[0])?;
Expand Down

0 comments on commit 90d7cb2

Please sign in to comment.