Skip to content

Fix empty ifs causing errors on spirv 1.6 #7883

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

Open
wants to merge 3 commits into
base: trunk
Choose a base branch
from

Conversation

Vecvec
Copy link
Collaborator

@Vecvec Vecvec commented Jul 5, 2025

Connections
Fixes #7882

Description
Skips if statements if both the accept and reject blocks are empty, they don't do anything so we can just not write them out.

Testing
Adds a snapshot test.

Squash or Rebase?
Squash.

Checklist

  • Run cargo fmt.
  • Run taplo format.
  • Run cargo clippy --tests.
  • Run cargo xtask test to run tests.
  • If this contains user-facing changes, add a CHANGELOG.md entry.

@Vecvec Vecvec force-pushed the branch_same branch 2 times, most recently from 6f1f6b1 to fd64b3a Compare July 14, 2025 03:24
Copy link
Member

@ErichDonGubler ErichDonGubler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried force-pushing to resolve conflicts with the tip set to efe59c0, but I'm getting denied by GitHub. Not sure why, but LGTM otherwise!

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

Successfully merging this pull request may close these issues.

Empty if block causes spirv validation errors on spirv 1.6.
2 participants