We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Description LLVM assertion failed.
Steps to Reproduce dxc -T cs_6_0 -spirv path/to/file.hlsl
dxc -T cs_6_0 -spirv path/to/file.hlsl
HLSL code:
RWSturcturedBuffer<uint> Out; [numthreads(1, 1, 1)] void main() { Out[0] = asuint(-1); }
If we change the code as follows, the issue is not occurred.
Out[0] = asuint(-1 * 1);
Actual Behavior
Assertion failed: (SI.isSigned() == E->getType()->isSignedIntegerOrEnumerationType() && "Invalid evaluation result."), function Success, file ExprConstant.cpp, line 6199.
Environment
The text was updated successfully, but these errors were encountered:
RWStructuredBuffer Out; [numthreads(1, 1, 1)] void main() { Out[0] = asuint(-1); // Ensure correct handling of -1 }
Sorry, something went wrong.
No branches or pull requests
Description
LLVM assertion failed.
Steps to Reproduce
dxc -T cs_6_0 -spirv path/to/file.hlsl
HLSL code:
If we change the code as follows, the issue is not occurred.
Actual Behavior
Environment
The text was updated successfully, but these errors were encountered: