Miri: adopt to new intrinsic types

This commit is contained in:
Maybe Waffle 2024-04-16 11:53:15 +00:00
parent ceead1bda6
commit e4a854e495
3 changed files with 3 additions and 3 deletions

View File

@ -163,7 +163,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
}
}
Op::Numeric(name) => {
this.numeric_intrinsic(name, op.to_scalar(), op.layout)?
this.numeric_intrinsic(name, op.to_scalar(), op.layout, op.layout)?
}
};
this.write_scalar(val, &dest)?;

View File

@ -2,7 +2,7 @@
mod rusti {
extern "rust-intrinsic" {
pub fn ctlz_nonzero<T>(x: T) -> T;
pub fn ctlz_nonzero<T>(x: T) -> u32;
}
}

View File

@ -2,7 +2,7 @@
mod rusti {
extern "rust-intrinsic" {
pub fn cttz_nonzero<T>(x: T) -> T;
pub fn cttz_nonzero<T>(x: T) -> u32;
}
}