File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,11 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
13
13
// alignment requirement and size less than or equal to the size requested."
14
14
// So first we need to figure out what the limits are for "fundamental alignment".
15
15
// This is given by `alignof(max_align_t)`. The following list is taken from
16
- // `library/std/src/sys/pal/common/ alloc.rs` (where this is called `MIN_ALIGN`) and should
16
+ // `library/std/src/sys/alloc/mod .rs` (where this is called `MIN_ALIGN`) and should
17
17
// be kept in sync.
18
18
let max_fundamental_align = match this. tcx . sess . target . arch . as_ref ( ) {
19
- "x86" | "arm" | "mips" | "mips32r6" | "powerpc" | "powerpc64" | "wasm32" => 8 ,
19
+ "x86" | "arm" | "loongarch32" | "mips" | "mips32r6" | "powerpc" | "powerpc64"
20
+ | "wasm32" => 8 ,
20
21
"x86_64" | "aarch64" | "mips64" | "mips64r6" | "s390x" | "sparc64" | "loongarch64" =>
21
22
16 ,
22
23
arch => bug ! ( "unsupported target architecture for malloc: `{}`" , arch) ,
You can’t perform that action at this time.
0 commit comments