Commit 031e496
committed
[libafl_cc] Fix for LLVM opaque pointers in passes
LLVM began introducing opaque pointers (pointer types with purposefully
undefined pointee types) around LLVM 13[1] like in commit:
`2155dc51d700 ([IR] Introduce the opaque pointer type, 2021-05-01)`
introducing the function:
`PointerType::get(LLVMContext &C, unsigned AddressSpace)`
and had wholesale switched to only opaque pointers by LLVM 17[2]. Part
of that effort deprecates many functions, including:
`PointerType::get(Type *ElementType, unsigned AddressSpace)`
though this function was depreacted much later in LLVM 21 in
commit:
`146ad71bc71a ([IR] Deprecate PointerType::get/getUnqual pointee type overload (#134517), 2025-04-07)`
Switch libafl_cc's passes to the new function to avoid deprecation
warnings
[1]: https://releases.llvm.org/13.0.1/docs/ReleaseNotes.html#changes-to-the-llvm-ir
[2]: https://releases.llvm.org/22.1.0/docs/OpaquePointers.html#version-support1 parent f2ca383 commit 031e496
4 files changed
Lines changed: 11 additions & 17 deletions
File tree
- crates/libafl_cc/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
302 | | - | |
303 | | - | |
| 302 | + | |
304 | 303 | | |
305 | 304 | | |
306 | 305 | | |
307 | | - | |
308 | | - | |
| 306 | + | |
309 | 307 | | |
310 | 308 | | |
311 | 309 | | |
| |||
314 | 312 | | |
315 | 313 | | |
316 | 314 | | |
317 | | - | |
318 | | - | |
| 315 | + | |
319 | 316 | | |
320 | 317 | | |
321 | 318 | | |
322 | 319 | | |
323 | | - | |
324 | | - | |
| 320 | + | |
325 | 321 | | |
326 | 322 | | |
327 | 323 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
233 | | - | |
| 232 | + | |
234 | 233 | | |
235 | 234 | | |
236 | 235 | | |
| |||
246 | 245 | | |
247 | 246 | | |
248 | 247 | | |
249 | | - | |
250 | | - | |
| 248 | + | |
251 | 249 | | |
252 | 250 | | |
253 | 251 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
236 | | - | |
| 235 | + | |
| 236 | + | |
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | | - | |
| 304 | + | |
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
| |||
0 commit comments