mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 21:47:15 +03:00
Use force_ptr instead of assert_ptr
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@ fn find_fn(
|
||||
if this.tcx.lang_items().align_offset_fn() == Some(instance.def.def_id()) {
|
||||
|
||||
let n = {
|
||||
let ptr = this.read_scalar(args[0])?.not_undef()?.assert_ptr();
|
||||
let ptr = this.force_ptr(this.read_scalar(args[0])?.not_undef()?)?;
|
||||
let align = this.force_bits(
|
||||
this.read_scalar(args[1])?.not_undef()?,
|
||||
this.pointer_size()
|
||||
|
||||
Reference in New Issue
Block a user