Skip to content

Commit fb74584

Browse files
authored
Rollup merge of rust-lang#100760 - krasimirgg:llvm-16-pic-level, r=nikic
update test for LLVM change LLVM commit llvm/llvm-project@c2a3888 updates the PIC level version selection. Updated an affected rust test to work under both the old and new behaviors. Detected by our experimental rust + llvm @ HEAD bot: https://buildkite.com/llvm-project/rust-llvm-integrate-prototype/builds/12829#0182b368-a405-47a2-b3da-9c79cb907bfe/701-709
2 parents 18a7793 + 07e41fb commit fb74584

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/codegen/pic-relocation-model.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ pub fn call_foreign_fn() -> u8 {
1313
// CHECK: declare zeroext i8 @foreign_fn()
1414
extern "C" {fn foreign_fn() -> u8;}
1515

16-
// CHECK: !{i32 7, !"PIC Level", i32 2}
16+
// CHECK: !{i32 {{[78]}}, !"PIC Level", i32 2}

src/test/codegen/pie-relocation-model.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ pub fn call_foreign_fn() -> u8 {
1818
// CHECK: declare zeroext i8 @foreign_fn()
1919
extern "C" {fn foreign_fn() -> u8;}
2020

21-
// CHECK: !{i32 7, !"PIC Level", i32 2}
21+
// CHECK: !{i32 {{[78]}}, !"PIC Level", i32 2}
2222
// CHECK: !{i32 7, !"PIE Level", i32 2}

0 commit comments

Comments
 (0)