diff --git a/lib/Conversion/XeGPUToSPIRV/XeGPUToSPIRV.cpp b/lib/Conversion/XeGPUToSPIRV/XeGPUToSPIRV.cpp index 6685e3019..174e20528 100644 --- a/lib/Conversion/XeGPUToSPIRV/XeGPUToSPIRV.cpp +++ b/lib/Conversion/XeGPUToSPIRV/XeGPUToSPIRV.cpp @@ -107,9 +107,8 @@ void lookupOrInsertIntrinsic(ConversionPatternRewriter &rewriter, Operation *op, auto linkageTypeAttr = rewriter.getAttr(spirv::LinkageType::Import); std::replace(name.begin(), name.end(), '_', '.'); - auto nameAttr = StringAttr::get(rewriter.getContext(), name); auto linkage = spirv::LinkageAttributesAttr::get(rewriter.getContext(), - nameAttr, linkageTypeAttr); + name, linkageTypeAttr); func.setLinkageAttributesAttr(linkage); func->setAttr("VectorComputeFunctionINTEL", rewriter.getUnitAttr()); }