AstGen: avoid generating unreachable defer expressions #8822
Labels
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
frontend
Tokenization, parsing, AstGen, Sema, and Liveness.
Milestone
Here you can see there is an unreachable call to
a()
. The defer expression should not be generated at the block exit, since the block result was unreachable.The text was updated successfully, but these errors were encountered: