]> git.lizzy.rs Git - rust.git/blobdiff - src/shims/mod.rs
make use of get_alloc_info
[rust.git] / src / shims / mod.rs
index f2688bb08caa41b00b5e0369667ce74f42a4c80a..2423ffaf5fe01f018a3cc76612608e47ae787a6a 100644 (file)
@@ -87,7 +87,7 @@ fn align_offset(
         let ptr = this.read_pointer(ptr_op)?;
         if let Ok((alloc_id, _offset, _)) = this.ptr_try_get_alloc_id(ptr) {
             // Only do anything if we can identify the allocation this goes to.
-            let (_, cur_align) = this.get_alloc_size_and_align(alloc_id, AllocCheck::MaybeDead)?;
+            let (_size, cur_align, _kind) = this.get_alloc_info(alloc_id);
             if cur_align.bytes() >= req_align {
                 // If the allocation alignment is at least the required alignment we use the
                 // real implementation.