Skip to content

Commit e570d85

Browse files
wpanastojano
authored andcommitted
Do not skip parameter attributes in SPIR-V reader
Change-Id: I1716b5265c3aa5e041c7b691192071f676101a27
1 parent 5344403 commit e570d85

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

IGC/AdaptorOCL/SPIRV/SPIRVReader.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2654,9 +2654,8 @@ SPIRVToLLVM::transFunction(SPIRVFunction *BF) {
26542654
auto BA = BF->getArgument(I->getArgNo());
26552655
mapValue(BA, &(*I));
26562656
const std::string &ArgName = BA->getName();
2657-
if (ArgName.empty())
2658-
continue;
2659-
I->setName(ArgName);
2657+
if (!ArgName.empty())
2658+
I->setName(ArgName);
26602659
BA->foreachAttr([&](SPIRVFuncParamAttrKind Kind){
26612660
if (Kind == FunctionParameterAttributeCount)
26622661
return;

0 commit comments

Comments
 (0)