Commit bafa7c7
committed
[libafl_cc] Fix for changes to ArrayRef construct
Constructing an ArrayRef from a nullopt was deprecated in LLVM commit:
`2529de5c935a ([ADT] Deprecate ArrayRef(std::nullopt) (#146011), 2025-06-27)`
(First tagged in LLVM 21)
Then removed in LLVM commit:
`cfbb4cc31215 ([ADT] Remove ArrayRef(std::nullopt_t) (#165831), 2025-10-31)`
(First tagged in LLVM 22)
The LLVM authors recommend switching to the `{}` C++ syntax, so
introduce that conditionally if and only if the LLVM version is
greater than or equal to 21 and fall back to the previous nullopt
workaround, otherwise1 parent b36fbf1 commit bafa7c7
1 file changed
Lines changed: 17 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | 13 | | |
19 | 14 | | |
20 | 15 | | |
| |||
33 | 28 | | |
34 | 29 | | |
35 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
36 | 48 | | |
37 | 49 | | |
38 | 50 | | |
| |||
0 commit comments