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

Fix constants not getting dropped if part of a diverging expression #94775

Merged
merged 2 commits into from
May 4, 2022

Commits on May 4, 2022

  1. Add regression test

    oli-obk committed May 4, 2022
    Configuration menu
    Copy the full SHA
    afcd33a View commit details
    Browse the repository at this point in the history
  2. Generate an intermediate temporary for Drop constants.

    To limit the fallout from this, don't do this for the last (or only) operand in an rvalue.
    oli-obk committed May 4, 2022
    Configuration menu
    Copy the full SHA
    db02e61 View commit details
    Browse the repository at this point in the history