Skip to content

Commit 7984716

Browse files
committed
Fix function call after merge
1 parent 426bdc9 commit 7984716

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3063,8 +3063,8 @@ static SPIRVType *getInlineSpirvType(const TargetExtType *ExtensionType,
30633063
auto OperandValue = ParamEType->getIntParameter(0);
30643064
auto *OperandType = ParamEType->getTypeParameter(0);
30653065

3066-
const SPIRVType *OperandSPIRVType =
3067-
GR->getOrCreateSPIRVType(OperandType, MIRBuilder);
3066+
const SPIRVType *OperandSPIRVType = GR->getOrCreateSPIRVType(
3067+
OperandType, MIRBuilder, SPIRV::AccessQualifier::ReadWrite, true);
30683068

30693069
Operands.push_back(MCOperand::createReg(GR->buildConstantInt(
30703070
OperandValue, MIRBuilder, OperandSPIRVType, true)));
@@ -3083,7 +3083,8 @@ static SPIRVType *getInlineSpirvType(const TargetExtType *ExtensionType,
30833083
continue;
30843084
}
30853085
}
3086-
const SPIRVType *TypeOperand = GR->getOrCreateSPIRVType(Param, MIRBuilder);
3086+
const SPIRVType *TypeOperand = GR->getOrCreateSPIRVType(
3087+
Param, MIRBuilder, SPIRV::AccessQualifier::ReadWrite, true);
30873088
Operands.push_back(MCOperand::createReg(GR->getSPIRVTypeID(TypeOperand)));
30883089
}
30893090

0 commit comments

Comments
 (0)