Skip to content

Basic dead code elimination should apply to reachability computation. #123

@oridb

Description

@oridb

Right now, things like:

const f = {
     while true
           if do_thing
               -> 123
           ;;
      ;;
}

will complain because there's no return after while true. Trivially untaken branches (when the loop condition is a simply computed compile time constant) should be eliminated when determining use before def or reaching the end of the function without a return.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions