implement const_allocate intrinsic
This commit is contained in:
parent
a284d4f551
commit
dfa0a3b3c7
2 changed files with 6 additions and 1 deletions
|
|
@ -1 +1 @@
|
|||
4e8fb743ccbec27344b2dd42de7057f41d4ebfdd
|
||||
78450d2d602b06d9b94349aaf8cece1a4acaf3a8
|
||||
|
|
|
|||
|
|
@ -54,6 +54,11 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
|
|||
let right = this.read_immediate(right)?;
|
||||
this.binop_ignore_overflow(mir::BinOp::Ne, &left, &right, dest)?;
|
||||
}
|
||||
"const_allocate" => {
|
||||
// For now, for compatibility with the run-time implementation of this, we just return null.
|
||||
// See <https://github.com/rust-lang/rust/issues/93935>.
|
||||
this.write_null(dest)?;
|
||||
}
|
||||
|
||||
// Raw memory accesses
|
||||
"volatile_load" => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue