gh-88057: in compile.c, assertion that stackdepth is alway >=0 is missing in one place#96513
Conversation
…is missing in one place
|
Hmm. Maybe I jumped the gun on approving the merge. The thing is, in isolation the change is fine. But the code seems a bit weird. Why is there
on line 7081 in the original source (7082 in the changed source)? Without your one-line change, that assertion should really move below I'd also like to see the assertion on |
|
Yes, exactly. The assertion on line 7082 was supposed to capture what my new assertion captures, and it does except for the last iteration. We could remove it now, though it's not wrong. |


I believe this assertion would have helped @larryhastings with the crash described in #88057.