[llvm] [SPIR-V] Handle undef aggregate initializers for global variables (PR #186785)
Arseniy Obolenskiy via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 16 10:47:35 PDT 2026
================
@@ -0,0 +1,56 @@
+; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s
+; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv32-unknown-unknown %s -o - -filetype=obj | spirv-val %}
----------------
aobolensk wrote:
In that case we will get this fatal error:
```
LLVM ERROR: This entry point lacks mandatory hlsl.shader attribute.
```
https://github.com/llvm/llvm-project/pull/186785
More information about the llvm-commits
mailing list