llvm-spirv: llvm/lib/SPIRV/libSPIRV/SPIRVInstruction.h:270: virtual void SPIRV::SPIRVInstTemplateBase::setOpWords(const std::vector&): Assertion `HasVariWC && WC >= WordCount && "Invalid word count"' failed. Stack dump: 0. Program arguments: llvm-spirv enqueue.bc 1. Running pass 'Unnamed pass: implement Pass::getPassName()' on module 'enqueue.bc'. #0 0x74b628 llvm::sys::PrintStackTrace(_IO_FILE*) llvm/lib/Support/Unix/Signals.inc:423:0 #1 0x74b8cf PrintStackTraceSignalHandler(void*) llvm/lib/Support/Unix/Signals.inc:481:0 #2 0x74a4f2 SignalHandler(int) llvm/lib/Support/Unix/Signals.inc:198:0 #3 0x356460f710 __restore_rt (/lib64/libpthread.so.0+0x356460f710) #4 0x3564232925 __GI_raise (/lib64/libc.so.6+0x3564232925) #5 0x3564234105 __GI_abort (/lib64/libc.so.6+0x3564234105) #6 0x356422ba4e __assert_fail_base (/lib64/libc.so.6+0x356422ba4e) #7 0x356422bb10 __GI___assert_perror_fail (/lib64/libc.so.6+0x356422bb10) #8 0x55b082 SPIRV::SPIRVInstTemplateBase::setOpWords(std::vector > const&) llvm/lib/SPIRV/libSPIRV/SPIRVInstruction.h:271:0 #9 0x55afca SPIRV::SPIRVInstTemplateBase::setOpWordsAndValidate(std::vector > const&) llvm/lib/SPIRV/libSPIRV/SPIRVInstruction.h:258:0 #10 0x548a16 SPIRV::LLVMToSPIRV::transBuiltinToInstWithoutDecoration(spv::Op, llvm::CallInst*, SPIRV::SPIRVBasicBlock*) llvm/lib/SPIRV/SPIRVWriter.cpp:1603:0 #11 0x547173 SPIRV::LLVMToSPIRV::transBuiltinToInst(std::string const&, std::string const&, llvm::CallInst*, SPIRV::SPIRVBasicBlock*) llvm/lib/SPIRV/SPIRVWriter.cpp:1380:0 #12 0x5453ed SPIRV::LLVMToSPIRV::transCallInst(llvm::CallInst*, SPIRV::SPIRVBasicBlock*) llvm/lib/SPIRV/SPIRVWriter.cpp:1031:0 #13 0x54493d SPIRV::LLVMToSPIRV::transValueWithoutDecoration(llvm::Value*, SPIRV::SPIRVBasicBlock*, bool) llvm/lib/SPIRV/SPIRVWriter.cpp:908:0 #14 0x5427ed SPIRV::LLVMToSPIRV::transValue(llvm::Value*, SPIRV::SPIRVBasicBlock*, bool) llvm/lib/SPIRV/SPIRVWriter.cpp:659:0 #15 0x5468cd SPIRV::LLVMToSPIRV::transFunction(llvm::Function*) llvm/lib/SPIRV/SPIRVWriter.cpp:1295:0 #16 0x546e65 SPIRV::LLVMToSPIRV::translate() llvm/lib/SPIRV/SPIRVWriter.cpp:1339:0 #17 0x53f79b SPIRV::LLVMToSPIRV::runOnModule(llvm::Module&) llvm/lib/SPIRV/SPIRVWriter.cpp:176:0 #18 0x696cc7 (anonymous namespace)::MPPassManager::runOnModule(llvm::Module&) llvm/lib/IR/LegacyPassManager.cpp:1616:0 #19 0x697381 llvm::legacy::PassManagerImpl::run(llvm::Module&) llvm/lib/IR/LegacyPassManager.cpp:1723:0 #20 0x6975a7 llvm::legacy::PassManager::run(llvm::Module&) llvm/lib/IR/LegacyPassManager.cpp:1757:0 #21 0x548d2e llvm::WriteSPIRV(llvm::Module*, std::ostream&, std::string&) llvm/lib/SPIRV/SPIRVWriter.cpp:1653:0 #22 0x4071fa convertLLVMToSPIRV() llvm/tools/llvm-spirv/llvm-spirv.cpp:148:0 #23 0x407e9a main llvm/tools/llvm-spirv/llvm-spirv.cpp:305:0 #24 0x356421ed1d __libc_start_main (/lib64/libc.so.6+0x356421ed1d) #25 0x406411 _start (spir-v/github/Debug/bin/llvm-spirv+0x406411)