We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6f7114 commit c2cf424Copy full SHA for c2cf424
1 file changed
lib/SPIRV/SPIRVReader.cpp
@@ -2822,7 +2822,7 @@ Function *SPIRVToLLVM::transFunction(SPIRVFunction *BF) {
2822
I->addAttr(A);
2823
});
2824
2825
- AttrBuilder Builder;
+ AttrBuilder Builder(*Context);
2826
SPIRVWord MaxOffset = 0;
2827
if (BA->hasDecorate(DecorationMaxByteOffset, 0, &MaxOffset))
2828
Builder.addDereferenceableAttr(MaxOffset);
0 commit comments