Commit 373206d
authored
[clang][bytecode] Prefer ParmVarDecls as function parameters (llvm#153952)
We might create a local temporary variable for a ParmVarDecl, in which
case a DeclRefExpr for that ParmVarDecl should _still_ result in us
choosing the parameter, not that local.1 parent 0b1b567 commit 373206d
File tree
2 files changed
+35
-14
lines changed- clang
- lib/AST/ByteCode
- test/AST/ByteCode
2 files changed
+35
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6745 | 6745 | | |
6746 | 6746 | | |
6747 | 6747 | | |
| 6748 | + | |
| 6749 | + | |
| 6750 | + | |
| 6751 | + | |
| 6752 | + | |
| 6753 | + | |
| 6754 | + | |
| 6755 | + | |
| 6756 | + | |
| 6757 | + | |
| 6758 | + | |
| 6759 | + | |
| 6760 | + | |
| 6761 | + | |
| 6762 | + | |
| 6763 | + | |
6748 | 6764 | | |
6749 | 6765 | | |
6750 | 6766 | | |
| |||
6762 | 6778 | | |
6763 | 6779 | | |
6764 | 6780 | | |
6765 | | - | |
6766 | | - | |
6767 | | - | |
6768 | | - | |
6769 | | - | |
6770 | | - | |
6771 | | - | |
6772 | | - | |
6773 | | - | |
6774 | | - | |
6775 | | - | |
6776 | | - | |
6777 | | - | |
6778 | | - | |
6779 | 6781 | | |
6780 | 6782 | | |
6781 | 6783 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
713 | 713 | | |
714 | 714 | | |
715 | 715 | | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
0 commit comments