Commit 8835b75
authored
[BoundsSafety] Do not merge param/return types if there is no need to (#10934)
If pointers don't have any interesting attributes, there is no need to
attempt to merge the types, and we can keep the type unchanged. This
will let us keep the sugars used in the new declaration.
rdar://153579566
(cherry picked from commit 0353029)1 parent db18f41 commit 8835b75
File tree
4 files changed
+36
-20
lines changed- clang
- lib
- AST
- Sema
- test/BoundsSafety/AST
4 files changed
+36
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3707 | 3707 | | |
3708 | 3708 | | |
3709 | 3709 | | |
3710 | | - | |
3711 | | - | |
3712 | | - | |
3713 | | - | |
3714 | | - | |
3715 | | - | |
3716 | | - | |
3717 | | - | |
3718 | | - | |
3719 | | - | |
3720 | | - | |
3721 | | - | |
3722 | | - | |
3723 | | - | |
3724 | | - | |
3725 | 3710 | | |
3726 | 3711 | | |
3727 | 3712 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4040 | 4040 | | |
4041 | 4041 | | |
4042 | 4042 | | |
| 4043 | + | |
| 4044 | + | |
| 4045 | + | |
| 4046 | + | |
| 4047 | + | |
| 4048 | + | |
| 4049 | + | |
| 4050 | + | |
| 4051 | + | |
| 4052 | + | |
| 4053 | + | |
| 4054 | + | |
| 4055 | + | |
| 4056 | + | |
| 4057 | + | |
| 4058 | + | |
| 4059 | + | |
| 4060 | + | |
| 4061 | + | |
| 4062 | + | |
| 4063 | + | |
4043 | 4064 | | |
4044 | 4065 | | |
4045 | 4066 | | |
4046 | 4067 | | |
4047 | | - | |
4048 | | - | |
| 4068 | + | |
| 4069 | + | |
4049 | 4070 | | |
4050 | 4071 | | |
4051 | 4072 | | |
| |||
4055 | 4076 | | |
4056 | 4077 | | |
4057 | 4078 | | |
4058 | | - | |
4059 | | - | |
4060 | | - | |
| 4079 | + | |
| 4080 | + | |
4061 | 4081 | | |
4062 | 4082 | | |
4063 | 4083 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
| |||
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| 45 | + | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
| |||
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
61 | 68 | | |
62 | 69 | | |
63 | 70 | | |
| |||
82 | 89 | | |
83 | 90 | | |
84 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
0 commit comments