Skip to content

Commit 80e7831

Browse files
committed
fix test
1 parent fa8b3be commit 80e7831

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/codegen-llvm/iterrangefrom-overflow-checks.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ use std::range::{IterRangeFrom, RangeFrom};
1616
// CHECK-LABEL: @iterrangefrom_remainder(
1717
#[no_mangle]
1818
pub unsafe fn iterrangefrom_remainder(x: IterRangeFrom<i32>) -> RangeFrom<i32> {
19-
// DEBUG: i32 noundef %x.0
20-
// NOCHECKS: i32 noundef returned %x.0
21-
// CHECK: i1 noundef zeroext %x.1
22-
// DEBUG: br i1
23-
// DEBUG: call core::panicking::panic_const::panic_const_add_overflow
24-
// DEBUG: unreachable
25-
// NOCHECKS: ret i32 %x.0
19+
// DEBUG: i32 noundef %x
20+
// NOCHECKS: i32 noundef returned %x
21+
// DEBUG: br i1
22+
// DEBUG: call core::panicking::panic_const::panic_const_add_overflow
23+
// DEBUG: unreachable
24+
// NOCHECKS-NOT: unreachable
25+
// NOCHECKS: ret i32 %x
2626
x.remainder()
2727
}

0 commit comments

Comments
 (0)