Skip to content

Commit 4643f5b

Browse files
zuban32vmaksimo
authored andcommitted
Support function pointers in constant struct value
Signed-off-by: Aleksandr Bezzubikov <zuban32s@gmail.com>
1 parent 7e0b9e3 commit 4643f5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm-spirv/lib/SPIRV/SPIRVWriter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ SPIRVValue *LLVMToSPIRV::transConstant(Value *V) {
759759
}
760760
std::vector<SPIRVValue *> BV;
761761
for (auto I = ConstV->op_begin(), E = ConstV->op_end(); I != E; ++I)
762-
BV.push_back(transValue(*I, nullptr));
762+
BV.push_back(transValue(*I, nullptr, true, FuncTransMode::Pointer));
763763
return BM->addCompositeConstant(transType(V->getType()), BV);
764764
}
765765

0 commit comments

Comments
 (0)