Commit fbbe221
committed
[CSOptimizer] Use
The existing check is no-op because it would never produce a null for
`paramType` under the conditions in `else` branch. A better
API it use here is `conformsToKnownProtocol` just like in other cases.
(cherry picked from commit 62a9178)conformsToKnownProtocol to check whether parameter conforms to ExpressibleBy{Array, Dictionary}Literal
1 parent 146fb0b commit fbbe221
File tree
2 files changed
+20
-11
lines changed- lib/Sema
- validation-test/Sema/type_checker_perf/fast
2 files changed
+20
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1348 | 1348 | | |
1349 | 1349 | | |
1350 | 1350 | | |
1351 | | - | |
1352 | | - | |
1353 | 1351 | | |
1354 | 1352 | | |
1355 | 1353 | | |
1356 | 1354 | | |
1357 | | - | |
1358 | | - | |
1359 | | - | |
1360 | | - | |
| 1355 | + | |
| 1356 | + | |
1361 | 1357 | | |
1362 | 1358 | | |
1363 | 1359 | | |
1364 | 1360 | | |
1365 | 1361 | | |
1366 | 1362 | | |
1367 | | - | |
1368 | | - | |
1369 | | - | |
1370 | | - | |
1371 | | - | |
| 1363 | + | |
| 1364 | + | |
1372 | 1365 | | |
1373 | 1366 | | |
1374 | 1367 | | |
| |||
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
0 commit comments