We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4a8289 commit 1e82a9bCopy full SHA for 1e82a9b
tests/codegen-llvm/cross-crate-inlining/auxiliary/leaf.rs
@@ -4,8 +4,8 @@
4
5
// This function *looks* like it contains a call, but that call will be optimized out by MIR
6
// optimizations.
7
-pub fn leaf_fn() -> String {
8
- String::new()
+pub fn leaf_fn() -> bool {
+ Some(0).is_some()
9
}
10
11
// This function contains a call, even after MIR optimizations. It is only eligible for
tests/codegen-llvm/cross-crate-inlining/leaf-inlining.rs
@@ -7,7 +7,7 @@ extern crate leaf;
// Check that we inline a leaf cross-crate call
#[no_mangle]
-pub fn leaf_outer() -> String {
+pub fn leaf_outer() -> bool {
// CHECK-NOT: call {{.*}}leaf_fn
12
leaf::leaf_fn()
13
0 commit comments