Implement transmute.
This commit is contained in:
parent
de10839f96
commit
81f49ed1c0
1 changed files with 5 additions and 0 deletions
|
@ -352,6 +352,11 @@ impl<'a, 'tcx: 'a, 'arena> Interpreter<'a, 'tcx, 'arena> {
|
|||
try!(self.memory.write_uint(dest, size, dest_size));
|
||||
}
|
||||
|
||||
"transmute" => {
|
||||
let src = try!(self.eval_operand(&args[0]));
|
||||
try!(self.memory.copy(src, dest, dest_size));
|
||||
}
|
||||
|
||||
"uninit" => {}
|
||||
|
||||
name => panic!("can't handle intrinsic: {}", name),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue