Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect terminator generation #602

Open
wenpen opened this issue May 14, 2024 · 3 comments
Open

Incorrect terminator generation #602

wenpen opened this issue May 14, 2024 · 3 comments

Comments

@wenpen
Copy link
Contributor

wenpen commented May 14, 2024

The following code would generate incorrect terminator, and result in module verification error.

  switch(a) {
  case 0:
    break; 
    int x = 1;
  }
  switch(a) {
  case 0:
    return 0;
    return 1;
    int x = 1;
  }
for (;;) {
  break;
  int x = 1;
}
@bcardosolopes
Copy link
Member

Thanks for tracking this

@piggynl
Copy link
Member

piggynl commented May 15, 2024

Hi, I found this issues seems almost identical to #323.

I'd like to make some contribution to clangir. May I ask if @wenpen is already working on this? If so, I'd happy to check out other issues. Thank you!

@wenpen
Copy link
Contributor Author

wenpen commented May 15, 2024

Hi @piggynl, I'm working on other issues, so feel free to take it on if you'd like, thanks~

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

No branches or pull requests

3 participants