@@ -61,7 +61,7 @@ pub fn maybeuninit_char(x: MaybeUninit<char>) -> MaybeUninit<char> {
61
61
x
62
62
}
63
63
64
- // CHECK: i64 @int(i64 %x)
64
+ // CHECK: noundef i64 @int(i64 noundef %x)
65
65
#[ no_mangle]
66
66
pub fn int ( x : u64 ) -> u64 {
67
67
x
@@ -73,7 +73,7 @@ pub fn nonzero_int(x: NonZeroU64) -> NonZeroU64 {
73
73
x
74
74
}
75
75
76
- // CHECK: i64 @option_nonzero_int(i64 %x)
76
+ // CHECK: noundef i64 @option_nonzero_int(i64 noundef %x)
77
77
#[ no_mangle]
78
78
pub fn option_nonzero_int ( x : Option < NonZeroU64 > ) -> Option < NonZeroU64 > {
79
79
x
@@ -138,7 +138,7 @@ pub fn indirect_struct(_: S) {
138
138
pub fn borrowed_struct ( _: & S ) {
139
139
}
140
140
141
- // CHECK: @raw_struct({{%S\*|ptr}} %_1)
141
+ // CHECK: @raw_struct({{%S\*|ptr}} noundef %_1)
142
142
#[ no_mangle]
143
143
pub fn raw_struct ( _: * const S ) {
144
144
}
@@ -160,35 +160,35 @@ pub fn struct_return() -> S {
160
160
}
161
161
162
162
// Hack to get the correct size for the length part in slices
163
- // CHECK: @helper([[USIZE:i[0-9]+]] %_1)
163
+ // CHECK: @helper([[USIZE:i[0-9]+]] noundef %_1)
164
164
#[ no_mangle]
165
165
pub fn helper ( _: usize ) {
166
166
}
167
167
168
- // CHECK: @slice({{\[0 x i8\]\*|ptr}} noalias noundef nonnull readonly align 1 %_1.0, [[USIZE]] %_1.1)
168
+ // CHECK: @slice({{\[0 x i8\]\*|ptr}} noalias noundef nonnull readonly align 1 %_1.0, [[USIZE]] noundef %_1.1)
169
169
// FIXME #25759 This should also have `nocapture`
170
170
#[ no_mangle]
171
171
pub fn slice ( _: & [ u8 ] ) {
172
172
}
173
173
174
- // CHECK: @mutable_slice({{\[0 x i8\]\*|ptr}} noalias noundef nonnull align 1 %_1.0, [[USIZE]] %_1.1)
174
+ // CHECK: @mutable_slice({{\[0 x i8\]\*|ptr}} noalias noundef nonnull align 1 %_1.0, [[USIZE]] noundef %_1.1)
175
175
// FIXME #25759 This should also have `nocapture`
176
176
#[ no_mangle]
177
177
pub fn mutable_slice ( _: & mut [ u8 ] ) {
178
178
}
179
179
180
- // CHECK: @unsafe_slice({{\[0 x i16\]\*|ptr}} noundef nonnull align 2 %_1.0, [[USIZE]] %_1.1)
180
+ // CHECK: @unsafe_slice({{\[0 x i16\]\*|ptr}} noundef nonnull align 2 %_1.0, [[USIZE]] noundef %_1.1)
181
181
// unsafe interior means this isn't actually readonly and there may be aliases ...
182
182
#[ no_mangle]
183
183
pub fn unsafe_slice ( _: & [ UnsafeInner ] ) {
184
184
}
185
185
186
- // CHECK: @raw_slice({{\[0 x i8\]\*|ptr}} %_1.0, [[USIZE]] %_1.1)
186
+ // CHECK: @raw_slice({{\[0 x i8\]\*|ptr}} noundef %_1.0, [[USIZE]] noundef %_1.1)
187
187
#[ no_mangle]
188
188
pub fn raw_slice ( _: * const [ u8 ] ) {
189
189
}
190
190
191
- // CHECK: @str({{\[0 x i8\]\*|ptr}} noalias noundef nonnull readonly align 1 %_1.0, [[USIZE]] %_1.1)
191
+ // CHECK: @str({{\[0 x i8\]\*|ptr}} noalias noundef nonnull readonly align 1 %_1.0, [[USIZE]] noundef %_1.1)
192
192
// FIXME #25759 This should also have `nocapture`
193
193
#[ no_mangle]
194
194
pub fn str ( _: & [ u8 ] ) {
@@ -197,26 +197,26 @@ pub fn str(_: &[u8]) {
197
197
// CHECK: @trait_borrow({{\{\}\*|ptr}} noundef nonnull align 1 %_1.0, {{.+}} noalias noundef readonly align {{.*}} dereferenceable({{.*}}) %_1.1)
198
198
// FIXME #25759 This should also have `nocapture`
199
199
#[ no_mangle]
200
- pub fn trait_borrow ( _: & Drop ) {
200
+ pub fn trait_borrow ( _: & dyn Drop ) {
201
201
}
202
202
203
- // CHECK: @trait_raw({{\{\}\*|ptr}} %_1.0, {{.+}} noalias noundef readonly align {{.*}} dereferenceable({{.*}}) %_1.1)
203
+ // CHECK: @trait_raw({{\{\}\*|ptr}} noundef %_1.0, {{.+}} noalias noundef readonly align {{.*}} dereferenceable({{.*}}) %_1.1)
204
204
#[ no_mangle]
205
- pub fn trait_raw ( _: * const Drop ) {
205
+ pub fn trait_raw ( _: * const dyn Drop ) {
206
206
}
207
207
208
208
// CHECK: @trait_box({{\{\}\*|ptr}} noalias noundef nonnull align 1{{( %0)?}}, {{.+}} noalias noundef readonly align {{.*}} dereferenceable({{.*}}){{( %1)?}})
209
209
#[ no_mangle]
210
- pub fn trait_box ( _: Box < Drop > ) {
210
+ pub fn trait_box ( _: Box < dyn Drop > ) {
211
211
}
212
212
213
213
// CHECK: { {{i8\*|ptr}}, {{i8\*|ptr}} } @trait_option({{i8\*|ptr}} noalias noundef align 1 %x.0, {{i8\*|ptr}} %x.1)
214
214
#[ no_mangle]
215
- pub fn trait_option ( x : Option < Box < Drop > > ) -> Option < Box < Drop > > {
215
+ pub fn trait_option ( x : Option < Box < dyn Drop > > ) -> Option < Box < dyn Drop > > {
216
216
x
217
217
}
218
218
219
- // CHECK: { {{\[0 x i16\]\*|ptr}}, [[USIZE]] } @return_slice({{\[0 x i16\]\*|ptr}} noalias noundef nonnull readonly align 2 %x.0, [[USIZE]] %x.1)
219
+ // CHECK: { {{\[0 x i16\]\*|ptr}}, [[USIZE]] } @return_slice({{\[0 x i16\]\*|ptr}} noalias noundef nonnull readonly align 2 %x.0, [[USIZE]] noundef %x.1)
220
220
#[ no_mangle]
221
221
pub fn return_slice ( x : & [ u16 ] ) -> & [ u16 ] {
222
222
x
0 commit comments