Commit 6980f4d
Fix SubroutineInliner CallGraph crash.
LLVM 22 removed CallGraphNode::removeCallEdgeFor. The initial porting
effort replaced it with removeOneAbstractEdgeTo, which matches edges
with a null call site and would cause assertion within this function
when called on real direct call. Restored original behaviour with
removeCallEdgeForLegacy helper function.1 parent 33ef151 commit 6980f4d
2 files changed
Lines changed: 27 additions & 11 deletions
File tree
- IGC/WrapperLLVM
- include/llvmWrapper/Analysis
- lib/llvmWrapper/Transforms/IPO
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
18 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
19 | 39 | | |
| 40 | + | |
20 | 41 | | |
| 42 | + | |
21 | 43 | | |
22 | 44 | | |
23 | 45 | | |
Lines changed: 4 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
408 | 406 | | |
409 | 407 | | |
410 | 408 | | |
| |||
416 | 414 | | |
417 | 415 | | |
418 | 416 | | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
| 417 | + | |
424 | 418 | | |
425 | 419 | | |
426 | 420 | | |
| |||
0 commit comments