Commit dbb51b0
authored
Avoid dataflow analysis for generic parameters (#2908)
This avoids unnecessarily running the reflection methodbody scanner in
the linker, and the dataflow analysis in the analyzer, for methods
that were previously only triggering dataflow analysis due to
annotated generic parameters.
This eliminates unnecessary warnings for reflection access to
compiler-generated code.1 parent 5809152 commit dbb51b0
File tree
5 files changed
+7
-18
lines changed- src
- ILLink.RoslynAnalyzer/TrimAnalysis
- linker
- Linker.Dataflow
- Linker.Steps
- Linker
- test/Mono.Linker.Tests.Cases/DataFlow
5 files changed
+7
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | 37 | | |
43 | 38 | | |
44 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
31 | 35 | | |
32 | 36 | | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
36 | | - | |
| 40 | + | |
37 | 41 | | |
38 | 42 | | |
39 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2622 | 2622 | | |
2623 | 2623 | | |
2624 | 2624 | | |
2625 | | - | |
| 2625 | + | |
2626 | 2626 | | |
2627 | 2627 | | |
2628 | 2628 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
678 | 678 | | |
679 | 679 | | |
680 | 680 | | |
681 | | - | |
| 681 | + | |
682 | 682 | | |
683 | 683 | | |
684 | 684 | | |
| |||
Lines changed: 0 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
534 | 534 | | |
535 | 535 | | |
536 | 536 | | |
537 | | - | |
538 | | - | |
539 | 537 | | |
540 | 538 | | |
541 | 539 | | |
| |||
548 | 546 | | |
549 | 547 | | |
550 | 548 | | |
551 | | - | |
552 | | - | |
553 | 549 | | |
554 | 550 | | |
555 | 551 | | |
| |||
561 | 557 | | |
562 | 558 | | |
563 | 559 | | |
564 | | - | |
565 | 560 | | |
566 | 561 | | |
567 | 562 | | |
| |||
574 | 569 | | |
575 | 570 | | |
576 | 571 | | |
577 | | - | |
578 | 572 | | |
579 | 573 | | |
580 | 574 | | |
| |||
599 | 593 | | |
600 | 594 | | |
601 | 595 | | |
602 | | - | |
603 | | - | |
604 | 596 | | |
605 | 597 | | |
606 | 598 | | |
| |||
610 | 602 | | |
611 | 603 | | |
612 | 604 | | |
613 | | - | |
614 | | - | |
615 | 605 | | |
616 | 606 | | |
617 | 607 | | |
| |||
0 commit comments