Commit 0353029
committed
[BoundsSafety] Do not merge param/return types if there is no need to
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://1535795661 parent 4e0db49 commit 0353029
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 | |
|---|---|---|---|
| |||
3932 | 3932 | | |
3933 | 3933 | | |
3934 | 3934 | | |
3935 | | - | |
3936 | | - | |
3937 | | - | |
3938 | | - | |
3939 | | - | |
3940 | | - | |
3941 | | - | |
3942 | | - | |
3943 | | - | |
3944 | | - | |
3945 | | - | |
3946 | | - | |
3947 | | - | |
3948 | | - | |
3949 | | - | |
3950 | 3935 | | |
3951 | 3936 | | |
3952 | 3937 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4100 | 4100 | | |
4101 | 4101 | | |
4102 | 4102 | | |
| 4103 | + | |
| 4104 | + | |
| 4105 | + | |
| 4106 | + | |
| 4107 | + | |
| 4108 | + | |
| 4109 | + | |
| 4110 | + | |
| 4111 | + | |
| 4112 | + | |
| 4113 | + | |
| 4114 | + | |
| 4115 | + | |
| 4116 | + | |
| 4117 | + | |
| 4118 | + | |
| 4119 | + | |
| 4120 | + | |
| 4121 | + | |
| 4122 | + | |
| 4123 | + | |
4103 | 4124 | | |
4104 | 4125 | | |
4105 | 4126 | | |
4106 | 4127 | | |
4107 | | - | |
4108 | | - | |
| 4128 | + | |
| 4129 | + | |
4109 | 4130 | | |
4110 | 4131 | | |
4111 | 4132 | | |
| |||
4115 | 4136 | | |
4116 | 4137 | | |
4117 | 4138 | | |
4118 | | - | |
4119 | | - | |
4120 | | - | |
| 4139 | + | |
| 4140 | + | |
4121 | 4141 | | |
4122 | 4142 | | |
4123 | 4143 | | |
| |||
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