Commit 536149b
committed
cleanup: simplify ARC fix code in exprs.go and stmts.go
- genPipeExpr: deduplicate ARC release+return across fat-fn and plain-fn branches
- callFatFn: remove unreachable bounds check (llArgsPreCoerce always has 1+len(argNodes) entries)
- emitDefers: remove redundant i<len(pendingDeferEnvs) and env!=nil guards
(pendingDefers and pendingDeferEnvs are always kept in sync; buildEnv never
returns nil, only constant.Null for the no-captures case)
- lambda params: inline one-use isRC variable
https://claude.ai/code/session_016ZZaZLVcvtzTmYVaM1pmAB1 parent 2d97eb9 commit 536149b
2 files changed
Lines changed: 11 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1312 | 1312 | | |
1313 | 1313 | | |
1314 | 1314 | | |
1315 | | - | |
| 1315 | + | |
| 1316 | + | |
1316 | 1317 | | |
1317 | 1318 | | |
1318 | 1319 | | |
1319 | 1320 | | |
1320 | 1321 | | |
1321 | | - | |
1322 | | - | |
1323 | | - | |
1324 | | - | |
1325 | | - | |
1326 | | - | |
1327 | | - | |
1328 | | - | |
1329 | | - | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
1330 | 1325 | | |
1331 | | - | |
1332 | | - | |
1333 | 1326 | | |
1334 | 1327 | | |
1335 | 1328 | | |
| |||
1842 | 1835 | | |
1843 | 1836 | | |
1844 | 1837 | | |
1845 | | - | |
1846 | | - | |
1847 | | - | |
1848 | 1838 | | |
1849 | 1839 | | |
1850 | 1840 | | |
| |||
1947 | 1937 | | |
1948 | 1938 | | |
1949 | 1939 | | |
1950 | | - | |
1951 | | - | |
| 1940 | + | |
1952 | 1941 | | |
1953 | 1942 | | |
1954 | 1943 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
485 | 485 | | |
486 | 486 | | |
487 | 487 | | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
498 | 493 | | |
499 | 494 | | |
500 | 495 | | |
| |||
0 commit comments