Commit aebe2ab
committed
Fix missing operators in synthesized
`visitBinaryExpr` wasn't handling `UnresolvedDeclRefExpr` nodes, which the
synthesized `==` implementation uses to compare fields/payloads. Also fixed
the test that wasn't catching it since it also left out the operators.== impls printed by -print-ast.1 parent fb259ea commit aebe2ab
File tree
2 files changed
+7
-3
lines changed- lib/AST
- test/decl/enum
2 files changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4792 | 4792 | | |
4793 | 4793 | | |
4794 | 4794 | | |
| 4795 | + | |
| 4796 | + | |
| 4797 | + | |
| 4798 | + | |
4795 | 4799 | | |
4796 | 4800 | | |
4797 | 4801 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| |||
0 commit comments