Skip to content

Commit c5f8973

Browse files
committed
Change context to LLVM < 22.0
1 parent e071fd0 commit c5f8973

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_codegen_llvm/src/context.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,9 @@ pub(crate) unsafe fn create_module<'ll>(
213213
target_data_layout = target_data_layout.replace("p8:128:128:128:48", "p8:128:128")
214214
}
215215
}
216-
if llvm_version < (21, 2, 0) {
216+
if llvm_version < (22, 0, 0) {
217217
if sess.target.arch == "avr" {
218-
// LLVM 21.2 updated the default layout on avr: https://github.com/llvm/llvm-project/pull/152028
218+
// LLVM 22.0 updated the default layout on avr: https://github.com/llvm/llvm-project/pull/152028
219219
target_data_layout = target_data_layout.replace("n8-n16:8", "n8")
220220
}
221221
}

0 commit comments

Comments
 (0)