Exception handler gets eliminated #4716
Labels
Component: Core
Issue needs changes to the core
Effort: Low
Issue should take < 1 week
Impact: Medium
Issue is impactful with a bad, or no, workaround
State: Duplicate
Issue is a duplicate of another issue
Type: Bug
Issue is a non-crashing bug with repro steps
Created this issue from this discussion.
See code below. When we decompile this, we actually lose the entire
catch
branch somehow and don't decompile it. Part of the problem is that we mark themightThrow()
function asnoreturn
, but even if you mark the function as able to return, it still skips over the exception handler. I haven't looked closely enough to figure out why.The compiled executable I made is attached:
exception_test.zip
Originally posted by oskarwirga October 19, 2023
Exceptions are hard I know but analyzing the try catch in main this isn't quite supported in any decompiler that I've seen.
The text was updated successfully, but these errors were encountered: