Skip to content

Commit

Permalink
llvm: Allow noundef on llvm-18
Browse files Browse the repository at this point in the history
LLVM 18 will automatically infer @noundef in some situations. Adjust
codegen tests to accept this.

See llvm/llvm-project#76553 for why @noundef is being generated now.
  • Loading branch information
maurer committed Jan 2, 2024
1 parent ae612be commit 13b3403
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/codegen/abi-main-signature-32bit-c-int.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
fn main() {
}

// CHECK: define{{( hidden)?}} i32 @main(i32{{( %0)?}}, ptr{{( %1)?}})
// CHECK: define{{( hidden| noundef)*}} i32 @main(i32{{( %0)?}}, ptr{{( %1)?}})
2 changes: 1 addition & 1 deletion tests/codegen/sparc-struct-abi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub struct Bool {
b: bool,
}

// CHECK: define i64 @structbool()
// CHECK: define{{.*}} i64 @structbool()
// CHECK-NEXT: start:
// CHECK-NEXT: ret i64 72057594037927936
#[no_mangle]
Expand Down

0 comments on commit 13b3403

Please sign in to comment.