about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorTshepang Mbambo <tshepang@gmail.com>2023-02-18 09:59:41 +0200
committerTshepang Mbambo <tshepang@gmail.com>2023-02-18 09:59:41 +0200
commit225e01ee7925fca589bf3955e4158b3f9d64dc85 (patch)
tree91288402538d297a2ea32eb1b32dfa25c622fd73 /compiler/rustc_codegen_llvm/src
parentfabfd1fd931a302c0fceb60213534252883a6743 (diff)
downloadrust-225e01ee7925fca589bf3955e4158b3f9d64dc85.tar.gz
rust-225e01ee7925fca589bf3955e4158b3f9d64dc85.zip
link to llvm changes that prompted the special cases
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
-rw-r--r--compiler/rustc_codegen_llvm/src/context.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/context.rs b/compiler/rustc_codegen_llvm/src/context.rs
index 8848ea3bb9a..ae9fab71f66 100644
--- a/compiler/rustc_codegen_llvm/src/context.rs
+++ b/compiler/rustc_codegen_llvm/src/context.rs
@@ -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-");
         }
     }