Skip to content

Commit 316807c

Browse files
authored
Rollup merge of #128697 - RalfJung:nullary-op, r=compiler-errors
interpret: move nullary-op evaluation into operator.rs We call it an operator, so we might as well treat it like one. :) Also use more consistent naming for the "evaluate intrinsic" functions. "emulate" is really the wrong term, this *is* a genuine implementation of the intrinsic semantics after all.
2 parents c8e7c91 + 8f755a8 commit 316807c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/intrinsics/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
3333
let this = self.eval_context_mut();
3434

3535
// See if the core engine can handle this intrinsic.
36-
if this.emulate_intrinsic(instance, args, dest, ret)? {
36+
if this.eval_intrinsic(instance, args, dest, ret)? {
3737
return Ok(None);
3838
}
3939
let intrinsic_name = this.tcx.item_name(instance.def_id());

0 commit comments

Comments
 (0)