File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
compiler/rustc_codegen_llvm/src Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -150,17 +150,14 @@ pub unsafe fn create_module<'ll>(
150
150
target_data_layout =
151
151
"e-m:x-p:32:32-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:32-n8:16:32-a:0:32-S32"
152
152
. to_string ( ) ;
153
- }
154
- if sess. target . arch == "wasm32" {
153
+ } else if sess. target . arch == "wasm32" {
155
154
target_data_layout = target_data_layout. replace ( "-p10:8:8-p20:8:8" , "" ) ;
156
155
}
157
156
}
158
157
if llvm_version < ( 16 , 0 , 0 ) {
159
158
if sess. target . arch == "s390x" {
160
159
target_data_layout = target_data_layout. replace ( "-v128:64" , "" ) ;
161
- }
162
-
163
- if sess. target . arch == "riscv64" {
160
+ } else if sess. target . arch == "riscv64" {
164
161
target_data_layout = target_data_layout. replace ( "-n32:64-" , "-n64-" ) ;
165
162
}
166
163
}
You can’t perform that action at this time.
0 commit comments