File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
rustc_target/src/spec/targets Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -215,8 +215,8 @@ pub(crate) unsafe fn create_module<'ll>(
215
215
}
216
216
if llvm_version < ( 22 , 0 , 0 ) {
217
217
if sess. target . arch == "avr" {
218
- // LLVM 22.0 updated the default layout on avr: https://github.com/llvm/llvm-project/pull/152028
219
- target_data_layout = target_data_layout. replace ( "n8-n16:8 " , "n8" )
218
+ // LLVM 22.0 updated the default layout on avr: https://github.com/llvm/llvm-project/pull/153010
219
+ target_data_layout = target_data_layout. replace ( "n8:16 " , "n8" )
220
220
}
221
221
}
222
222
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ pub(crate) fn target() -> Target {
9
9
host_tools : None ,
10
10
std : None ,
11
11
} ,
12
- data_layout : "e-P1-p:16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8-n16:8 -a:8" . into ( ) ,
12
+ data_layout : "e-P1-p:16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8:16 -a:8" . into ( ) ,
13
13
llvm_target : "avr-unknown-unknown" . into ( ) ,
14
14
pointer_width : 16 ,
15
15
options : TargetOptions {
You can’t perform that action at this time.
0 commit comments