Skip to content

Commit 225e01e

Browse files
committed
link to llvm changes that prompted the special cases
1 parent fabfd1f commit 225e01e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/rustc_codegen_llvm/src/context.rs

+2
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,10 @@ pub unsafe fn create_module<'ll>(
145145
let llvm_version = llvm_util::get_version();
146146
if llvm_version < (16, 0, 0) {
147147
if sess.target.arch == "s390x" {
148+
// See https://reviews.llvm.org/D131158
148149
target_data_layout = target_data_layout.replace("-v128:64", "");
149150
} else if sess.target.arch == "riscv64" {
151+
// See https://reviews.llvm.org/D116735
150152
target_data_layout = target_data_layout.replace("-n32:64-", "-n64-");
151153
}
152154
}

0 commit comments

Comments
 (0)