Commit 386d329
committed
rollup merge of #22437: dotdash/fix_array_type
In trans_slice_vec we currently use arrayalloca, which gives us a
pointer to the element type with enough memory allocated for the
requested number of elements. This works, but everywhere else we use
the [n x T] type for fixed size arrays and so we have to bitcast the
pointer here. Let's directly use the proper type for the allocation and
remove some code duplication along the way.2 files changed
+11
-30
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1219 | 1219 | | |
1220 | 1220 | | |
1221 | 1221 | | |
1222 | | - | |
1223 | | - | |
1224 | | - | |
1225 | | - | |
1226 | | - | |
1227 | | - | |
1228 | | - | |
1229 | | - | |
1230 | | - | |
1231 | | - | |
1232 | | - | |
1233 | | - | |
1234 | | - | |
1235 | 1222 | | |
1236 | 1223 | | |
1237 | 1224 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
175 | 174 | | |
176 | 175 | | |
177 | 176 | | |
178 | 177 | | |
179 | | - | |
| 178 | + | |
180 | 179 | | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
189 | 183 | | |
| 184 | + | |
190 | 185 | | |
191 | | - | |
192 | 186 | | |
193 | | - | |
194 | | - | |
| 187 | + | |
| 188 | + | |
195 | 189 | | |
196 | 190 | | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
201 | 195 | | |
202 | 196 | | |
203 | 197 | | |
| |||
0 commit comments