julia icon indicating copy to clipboard operation
julia copied to clipboard

fix code coverage bug in tail position and `else`

Open JeffBezanson opened this issue 1 year ago • 2 comments

This was due to lowering keeping the same location info for the inserted return or goto statement, even though the last seen location might not have executed.

Also fixes inliner handling of the sentinel 0 value for code locations.

JeffBezanson avatar Feb 15 '24 21:02 JeffBezanson

This seems to still be subtly wrong. Now I'm thinking the right way to fix this might be to put location nodes at the end of if blocks like we do for for and while.

JeffBezanson avatar Feb 16 '24 21:02 JeffBezanson

Ok I fixed the fix, now this might be good enough on its own.

JeffBezanson avatar Feb 16 '24 22:02 JeffBezanson