<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/135905>135905</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[OpenCL][SPIR-V] Compilation of OpenCL to Vulkan SPIR-V crashes
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
cyanreg
</td>
</tr>
</table>
<pre>
Source:
```
void main(void) { }
```
Command:
```
./build/bin/clang-21 --target=spirv64v1.6-unknown-vulkan1.3 test.cl
```
Result:
```
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: ./build/bin/clang-21 --target=spirv64v1.6-unknown-vulkan1.3 /home/lynne/projects/ffmpeg_upstream_999/libavfilter/opencl/transpose.cl
1. Compilation construction
2. Building compilation jobs
3. Building compilation jobs
#0 0x0000561cd8e271c8 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/lynne/projects/llvm-project/llvm/lib/Support/Unix/Signals.inc:808:3
#1 0x0000561cd8e24f24 llvm::sys::RunSignalHandlers() /home/lynne/projects/llvm-project/llvm/lib/Support/Signals.cpp:105:20
#2 0x0000561cd8e252f0 SignalHandler(int, siginfo_t*, void*) /home/lynne/projects/llvm-project/llvm/lib/Support/Unix/Signals.inc:418:13
#3 0x00007fee3794bdf0 (/lib/x86_64-linux-gnu/libc.so.6+0x3fdf0)
#4 0x0000561cd9970fc3 clang::driver::ToolChain::buildLinker() const (./build/bin/clang-21+0x7977fc3)
```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJy0Vdtq5DgQ_ZrqF9FGlu8PfnA6Y3ZhYMNkdl6DLJfdmsiS0aWT_P0iu8Nkk73AMgsNklrl0jmnSkfcOTlrxBaKGyhuDzz4s7GteOHa4nwYzPjS3ptgBULWAe2gpNcf7S5GjmThUgOr4x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