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 c679b20 commit 1368355Copy full SHA for 1368355
tests/mir-opt/inline/issue_106141.rs
@@ -1,6 +1,9 @@
1
-// skip-filecheck
+// Verify that we do not ICE inlining a function which uses _0 as an index.
2
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
3
+
4
pub fn outer() -> usize {
5
+ // CHECK-LABEL: fn outer(
6
+ // CHECK: = {{.*}}[_0];
7
inner()
8
}
9
@@ -11,6 +14,8 @@ fn index() -> usize {
11
14
12
15
#[inline]
13
16
fn inner() -> usize {
17
+ // CHECK-LABEL: fn inner(
18
19
let buffer = &[true];
20
let index = index();
21
if buffer[index] {
0 commit comments