Commit 62a9178
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.conformsToKnownProtocol to check whether parameter conforms to ExpressibleBy{Array, Dictionary}Literal
1 parent a604d99 commit 62a9178
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 | |
|---|---|---|---|
| |||
1316 | 1316 | | |
1317 | 1317 | | |
1318 | 1318 | | |
1319 | | - | |
1320 | | - | |
1321 | 1319 | | |
1322 | 1320 | | |
1323 | 1321 | | |
1324 | 1322 | | |
1325 | | - | |
1326 | | - | |
1327 | | - | |
1328 | | - | |
| 1323 | + | |
| 1324 | + | |
1329 | 1325 | | |
1330 | 1326 | | |
1331 | 1327 | | |
1332 | 1328 | | |
1333 | 1329 | | |
1334 | 1330 | | |
1335 | | - | |
1336 | | - | |
1337 | | - | |
1338 | | - | |
1339 | | - | |
| 1331 | + | |
| 1332 | + | |
1340 | 1333 | | |
1341 | 1334 | | |
1342 | 1335 | | |
| |||
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