Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
link to llvm changes that prompted the special cases
  • Loading branch information
tshepang committed Feb 18, 2023
commit 225e01ee7925fca589bf3955e4158b3f9d64dc85
2 changes: 2 additions & 0 deletions compiler/rustc_codegen_llvm/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,10 @@ pub unsafe fn create_module<'ll>(
let llvm_version = llvm_util::get_version();
if llvm_version < (16, 0, 0) {
if sess.target.arch == "s390x" {
// See https://reviews.llvm.org/D131158
target_data_layout = target_data_layout.replace("-v128:64", "");
} else if sess.target.arch == "riscv64" {
// See https://reviews.llvm.org/D116735
target_data_layout = target_data_layout.replace("-n32:64-", "-n64-");
}
}
Expand Down