[llvm] [SPIRV] Error for zero-length arrays if not a shader (PR #169732)
Marcos Maronas via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 27 02:30:38 PST 2025
https://github.com/maarquitos14 commented:
> I had a case where the frontend was generating a zero elem array in non-shader code so it was just crashing in a release build.
Add a real error and make it not crash by returning some real value.
Can you share/describe the case where you find the problem? https://github.com/llvm/llvm-project/pull/149522 introduced handling for cases with 0-length arrays, if it's similar, we might prefer to extend that mechanism instead.
https://github.com/llvm/llvm-project/pull/169732
More information about the llvm-commits
mailing list