mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
Auto merge of #91657 - nikic:update-llvm, r=cuviper
Update LLVM submodule Update LLVM submodule with recent cherry-picks. In particular: * https://github.com/rust-lang/llvm-project/pull/123 * https://github.com/rust-lang/llvm-project/pull/124
This commit is contained in:
commit
06a6674a7d
@ -1 +1 @@
|
|||||||
Subproject commit 2b9078f4afae82f60c5ac0fdb4af42d269e2f2f3
|
Subproject commit 8404254254e2b4c9a80e7403659f6391b08203df
|
14
src/test/codegen/merge-functions.rs
Normal file
14
src/test/codegen/merge-functions.rs
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
// compile-flags: -O
|
||||||
|
#![crate_type = "lib"]
|
||||||
|
|
||||||
|
// CHECK: @func2 = {{.*}}alias{{.*}}@func1
|
||||||
|
|
||||||
|
#[no_mangle]
|
||||||
|
pub fn func1(c: char) -> bool {
|
||||||
|
c == 's' || c == 'm' || c == 'h' || c == 'd' || c == 'w'
|
||||||
|
}
|
||||||
|
|
||||||
|
#[no_mangle]
|
||||||
|
pub fn func2(c: char) -> bool {
|
||||||
|
matches!(c, 's' | 'm' | 'h' | 'd' | 'w')
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user