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> {
1313 // alignment requirement and size less than or equal to the size requested."
1414 // So first we need to figure out what the limits are for "fundamental alignment".
1515 // 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
1717 // be kept in sync.
1818 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 ,
2021 "x86_64" | "aarch64" | "mips64" | "mips64r6" | "s390x" | "sparc64" | "loongarch64" =>
2122 16 ,
2223 arch => bug ! ( "unsupported target architecture for malloc: `{}`" , arch) ,
You can’t perform that action at this time.
0 commit comments