Mark bytes undefined in uninit intrinsic.
This commit is contained in:
parent
56e118f86c
commit
62294d0c42
2 changed files with 6 additions and 3 deletions
|
@ -439,8 +439,9 @@ impl<'a, 'tcx: 'a, 'arena> Interpreter<'a, 'tcx, 'arena> {
|
|||
try!(self.memory.copy(src, dest, dest_size));
|
||||
}
|
||||
|
||||
// TODO(tsion): Mark bytes as undef.
|
||||
"uninit" => {}
|
||||
"uninit" => {
|
||||
try!(self.memory.mark_definedness(dest, dest_size, false));
|
||||
}
|
||||
|
||||
name => panic!("can't handle intrinsic: {}", name),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue