Skip to content

Commit 197f3a0

Browse files
committed
Auto merge of rust-lang#2852 - loongarch-rs:master, r=RalfJung
Add minimum alignment support for loongarch64 The [loongarch64-unknown-linux-gnu](rust-lang#96971) was added as a tier 3 target, add minimum alignment support for loongarch64 now. Thanks
2 parents 0fc2d1a + 585a329 commit 197f3a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/miri/src/shims/foreign_items.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
4646
// This list should be kept in sync with the one from libstd.
4747
let min_align = match this.tcx.sess.target.arch.as_ref() {
4848
"x86" | "arm" | "mips" | "powerpc" | "powerpc64" | "asmjs" | "wasm32" => 8,
49-
"x86_64" | "aarch64" | "mips64" | "s390x" | "sparc64" => 16,
49+
"x86_64" | "aarch64" | "mips64" | "s390x" | "sparc64" | "loongarch64" => 16,
5050
arch => bug!("unsupported target architecture for malloc: `{}`", arch),
5151
};
5252
// Windows always aligns, even small allocations.

0 commit comments

Comments
 (0)