@@ -25,48 +25,48 @@ pub fn maybeuninit_boolean(x: MaybeUninit<bool>) -> MaybeUninit<bool> {
2525 x
2626}
2727
28- // CHECK: @readonly_borrow(i32* noalias readonly align 4 dereferenceable(4) %_1)
28+ // CHECK: @readonly_borrow(i32* noalias noundef readonly align 4 dereferenceable(4) %_1)
2929// FIXME #25759 This should also have `nocapture`
3030#[ no_mangle]
3131pub fn readonly_borrow ( _: & i32 ) {
3232}
3333
34- // CHECK: @static_borrow(i32* noalias readonly align 4 dereferenceable(4) %_1)
34+ // CHECK: @static_borrow(i32* noalias noundef readonly align 4 dereferenceable(4) %_1)
3535// static borrow may be captured
3636#[ no_mangle]
3737pub fn static_borrow ( _: & ' static i32 ) {
3838}
3939
40- // CHECK: @named_borrow(i32* noalias readonly align 4 dereferenceable(4) %_1)
40+ // CHECK: @named_borrow(i32* noalias noundef readonly align 4 dereferenceable(4) %_1)
4141// borrow with named lifetime may be captured
4242#[ no_mangle]
4343pub fn named_borrow < ' r > ( _: & ' r i32 ) {
4444}
4545
46- // CHECK: @unsafe_borrow(i16* align 2 dereferenceable(2) %_1)
46+ // CHECK: @unsafe_borrow(i16* noundef align 2 dereferenceable(2) %_1)
4747// unsafe interior means this isn't actually readonly and there may be aliases ...
4848#[ no_mangle]
4949pub fn unsafe_borrow ( _: & UnsafeInner ) {
5050}
5151
52- // CHECK: @mutable_unsafe_borrow(i16* noalias align 2 dereferenceable(2) %_1)
52+ // CHECK: @mutable_unsafe_borrow(i16* noalias noundef align 2 dereferenceable(2) %_1)
5353// ... unless this is a mutable borrow, those never alias
5454#[ no_mangle]
5555pub fn mutable_unsafe_borrow ( _: & mut UnsafeInner ) {
5656}
5757
58- // CHECK: @mutable_borrow(i32* noalias align 4 dereferenceable(4) %_1)
58+ // CHECK: @mutable_borrow(i32* noalias noundef align 4 dereferenceable(4) %_1)
5959// FIXME #25759 This should also have `nocapture`
6060#[ no_mangle]
6161pub fn mutable_borrow ( _: & mut i32 ) {
6262}
6363
64- // CHECK: @indirect_struct(%S* noalias nocapture dereferenceable(32) %_1)
64+ // CHECK: @indirect_struct(%S* noalias nocapture noundef dereferenceable(32) %_1)
6565#[ no_mangle]
6666pub fn indirect_struct ( _: S ) {
6767}
6868
69- // CHECK: @borrowed_struct(%S* noalias readonly align 4 dereferenceable(32) %_1)
69+ // CHECK: @borrowed_struct(%S* noalias noundef readonly align 4 dereferenceable(32) %_1)
7070// FIXME #25759 This should also have `nocapture`
7171#[ no_mangle]
7272pub fn borrowed_struct ( _: & S ) {
@@ -85,7 +85,7 @@ pub fn _box(x: Box<i32>) -> Box<i32> {
8585 x
8686}
8787
88- // CHECK: @struct_return(%S* noalias nocapture sret(%S) dereferenceable(32){{( %0)?}})
88+ // CHECK: @struct_return(%S* noalias nocapture noundef sret(%S) dereferenceable(32){{( %0)?}})
8989#[ no_mangle]
9090pub fn struct_return ( ) -> S {
9191 S {
@@ -128,18 +128,18 @@ pub fn raw_slice(_: *const [u8]) {
128128pub fn str ( _: & [ u8 ] ) {
129129}
130130
131- // CHECK: @trait_borrow({}* noundef nonnull align 1 %_1.0, [3 x [[USIZE]]]* noalias readonly align {{.*}} dereferenceable({{.*}}) %_1.1)
131+ // CHECK: @trait_borrow({}* noundef nonnull align 1 %_1.0, [3 x [[USIZE]]]* noalias noundef readonly align {{.*}} dereferenceable({{.*}}) %_1.1)
132132// FIXME #25759 This should also have `nocapture`
133133#[ no_mangle]
134134pub fn trait_borrow ( _: & Drop ) {
135135}
136136
137- // CHECK: @trait_raw({}* %_1.0, [3 x [[USIZE]]]* noalias readonly align {{.*}} dereferenceable({{.*}}) %_1.1)
137+ // CHECK: @trait_raw({}* %_1.0, [3 x [[USIZE]]]* noalias noundef readonly align {{.*}} dereferenceable({{.*}}) %_1.1)
138138#[ no_mangle]
139139pub fn trait_raw ( _: * const Drop ) {
140140}
141141
142- // CHECK: @trait_box({}* noalias noundef nonnull align 1{{( %0)?}}, [3 x [[USIZE]]]* noalias readonly align {{.*}} dereferenceable({{.*}}){{( %1)?}})
142+ // CHECK: @trait_box({}* noalias noundef nonnull align 1{{( %0)?}}, [3 x [[USIZE]]]* noalias noundef readonly align {{.*}} dereferenceable({{.*}}){{( %1)?}})
143143#[ no_mangle]
144144pub fn trait_box ( _: Box < Drop > ) {
145145}
0 commit comments