Skip to content

Commit 06a6674

Browse files
committed
Auto merge of #91657 - nikic:update-llvm, r=cuviper
Update LLVM submodule Update LLVM submodule with recent cherry-picks. In particular: * rust-lang/llvm-project#123 * rust-lang/llvm-project#124
2 parents a737592 + e860f8e commit 06a6674

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

Diff for: src/test/codegen/merge-functions.rs

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// compile-flags: -O
2+
#![crate_type = "lib"]
3+
4+
// CHECK: @func2 = {{.*}}alias{{.*}}@func1
5+
6+
#[no_mangle]
7+
pub fn func1(c: char) -> bool {
8+
c == 's' || c == 'm' || c == 'h' || c == 'd' || c == 'w'
9+
}
10+
11+
#[no_mangle]
12+
pub fn func2(c: char) -> bool {
13+
matches!(c, 's' | 'm' | 'h' | 'd' | 'w')
14+
}

0 commit comments

Comments
 (0)