We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 211eaf0 commit cae1109Copy full SHA for cae1109
IGC/AdaptorOCL/SPIRV/SPIRVReader.cpp
@@ -1641,7 +1641,10 @@ SPIRVToLLVM::transType(SPIRVType *T) {
1641
}
1642
case OpTypeStruct: {
1643
auto ST = static_cast<SPIRVTypeStruct *>(T);
1644
- auto *pStructTy = StructType::create(*Context, ST->getName());
+ auto Name = ST->getName();
1645
+ if (Name.empty())
1646
+ Name = "structtype";
1647
+ auto *pStructTy = StructType::create(*Context, Name);
1648
mapType(ST, pStructTy);
1649
SmallVector<Type *, 4> MT;
1650
for (size_t I = 0, E = ST->getMemberCount(); I != E; ++I)
0 commit comments