Commit e015200
Fix TCC Windows: avoid ternary dispatch, reduce stack pressure in checker
Replace the if-expression ternary for method_call/fn_call dispatch with
an imperative if/else statement to avoid potential TCC codegen issues
with ternaries involving large function calls. Also pass CallExpr by
pointer in call_can_fill_optional_args and simplify final_left_kind
computation to reduce stack frame size and avoid nested as_cast ternary.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 4117fd9 commit e015200
1 file changed
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1053 | 1053 | | |
1054 | 1054 | | |
1055 | 1055 | | |
1056 | | - | |
1057 | | - | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
1058 | 1059 | | |
1059 | | - | |
| 1060 | + | |
1060 | 1061 | | |
1061 | 1062 | | |
1062 | 1063 | | |
| |||
2565 | 2566 | | |
2566 | 2567 | | |
2567 | 2568 | | |
2568 | | - | |
2569 | | - | |
2570 | | - | |
2571 | | - | |
| 2569 | + | |
| 2570 | + | |
| 2571 | + | |
2572 | 2572 | | |
2573 | 2573 | | |
2574 | 2574 | | |
| |||
3492 | 3492 | | |
3493 | 3493 | | |
3494 | 3494 | | |
3495 | | - | |
| 3495 | + | |
3496 | 3496 | | |
3497 | 3497 | | |
3498 | 3498 | | |
| |||
0 commit comments