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 3530b73 commit 88cbe10Copy full SHA for 88cbe10
llvm-spirv/lib/SPIRV/SPIRVWriter.cpp
@@ -563,10 +563,11 @@ SPIRVFunction *LLVMToSPIRV::transFunctionDecl(Function *F) {
563
// Order of integer numbers in MD node follows the order of function
564
// parameters on which we shall attach the appropriate decoration. Add
565
// decoration only if MD value is not negative.
566
- BM->addCapability(CapabilityFPGABufferLocationINTEL);
567
int LocID = getMDOperandAsInt(BufferLocation, ArgNo);
568
- if (LocID >= 0)
+ if (LocID >= 0) {
+ BM->addCapability(CapabilityFPGABufferLocationINTEL);
569
BA->addDecorate(DecorationBufferLocationINTEL, LocID);
570
+ }
571
}
572
573
if (Attrs.hasAttribute(AttributeList::ReturnIndex, Attribute::ZExt))
0 commit comments