Skip to content

Commit

Permalink
Rollup merge of rust-lang#100760 - krasimirgg:llvm-16-pic-level, r=nikic
Browse files Browse the repository at this point in the history
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
  • Loading branch information
matthiaskrgr authored Aug 21, 2022
2 parents 38d99fc + 07e41fb commit 22bff73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/test/codegen/pic-relocation-model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ pub fn call_foreign_fn() -> u8 {
// CHECK: declare zeroext i8 @foreign_fn()
extern "C" {fn foreign_fn() -> u8;}

// CHECK: !{i32 7, !"PIC Level", i32 2}
// CHECK: !{i32 {{[78]}}, !"PIC Level", i32 2}
2 changes: 1 addition & 1 deletion src/test/codegen/pie-relocation-model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ pub fn call_foreign_fn() -> u8 {
// CHECK: declare zeroext i8 @foreign_fn()
extern "C" {fn foreign_fn() -> u8;}

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

0 comments on commit 22bff73

Please sign in to comment.