Commit f29ffbb
Fix byref capture in GenStructStateMachine and Env stack tracking
- GenStructStateMachine: use GenGetFreeVarForClosure (like all other
closure paths) to properly dereference byrefs when initializing
captured variables in struct state machine closures.
- GenGetStorageAndSequel Env case: use ilField.ActualType instead of
ilTy for the Push annotation so the stack tracking matches the
actual type loaded by ldfld (important when byref is stripped by
capturedTypeForFreeVar).
Co-authored-by: Copilot <[email protected]>1 parent e2ddcab commit f29ffbb
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6352 | 6352 | | |
6353 | 6353 | | |
6354 | 6354 | | |
6355 | | - | |
| 6355 | + | |
6356 | 6356 | | |
6357 | 6357 | | |
6358 | 6358 | | |
| |||
9876 | 9876 | | |
9877 | 9877 | | |
9878 | 9878 | | |
9879 | | - | |
| 9879 | + | |
9880 | 9880 | | |
9881 | 9881 | | |
9882 | 9882 | | |
| |||
0 commit comments