Skip to content
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.

Suboptimal fallthrough analysis #46

Open
sharwell opened this issue Apr 8, 2014 · 3 comments
Open

Suboptimal fallthrough analysis #46

sharwell opened this issue Apr 8, 2014 · 3 comments

Comments

@sharwell
Copy link
Contributor

sharwell commented Apr 8, 2014

The following switch statement produces an unreachable goto case statement in the translated code.

switch (x) {
case 0:
  if (something) {
    break;
  } else {
    break;
  }

case 1:
  break;
}
@hazzik
Copy link
Contributor

hazzik commented Apr 8, 2014

What is the generated code?

@sharwell
Copy link
Contributor Author

sharwell commented Apr 9, 2014

@hazzik
Copy link
Contributor

hazzik commented Apr 9, 2014

Related to #25. It needs more analysis.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants