-
Notifications
You must be signed in to change notification settings - Fork 993
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
thread 'main' panicked at 'assertion failed: prev.is_none()', src/front/spv/mod.rs:2903:25 #4388
Comments
No problem! Here is an archive containing a simpler example for the break-error case. This has the following CFG: |
The problem is that our loop {
continuing {
if condition {
branch_to_loop_header
}
// some code
}
} which would be something like the following spirv:
Here the back-edge is loop {
continuing {
if condition { }
// some code
}
} while we want to generate loop {
continuing {
if condition { }
else {
// some code
}
}
} |
I suspect this is a duplicate of:
I have a fix open for that, can you try it out on your input? |
Running:
Gives:
If I run a release build, then I get:
I can also produce a slightly different error in both debug and release mode using a different example:
Outputs:
I've tried
.comp
.metal
and.hlsl
as translation targets and I get the same result regardless. I reproduced this on main (commit b3d5e6d). Here is an archive with the code examplesThe text was updated successfully, but these errors were encountered: