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

Support filter for exception handling #264

Open
antoyo opened this issue Apr 8, 2023 · 0 comments
Open

Support filter for exception handling #264

antoyo opened this issue Apr 8, 2023 · 0 comments
Labels
enhancement New feature or request libgccjit requires a change in libgccjit

Comments

@antoyo
Copy link
Contributor

antoyo commented Apr 8, 2023

rust-lang/rust#104070 (comment)

For this C++:

void b() noexcept {
    f();
}

we get this gimple:

void b ()
{
  try
    {
      f ();
    }
  catch
    {
      <<<eh_must_not_throw (terminate)>>>
    }
}

Seems like we just need to set TRY_CATCH_IS_CLEANUP on TRY_CATCH_EXPR.

@antoyo antoyo added enhancement New feature or request libgccjit requires a change in libgccjit labels Apr 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request libgccjit requires a change in libgccjit
Projects
None yet
Development

No branches or pull requests

1 participant