From 53473af2d48e2c958549e023f64b8de87bc26cad Mon Sep 17 00:00:00 2001 From: "Tiotto, Ettore" Date: Fri, 3 Nov 2023 11:14:22 -0700 Subject: [PATCH] Fix build problem Signed-off-by: Tiotto, Ettore --- lib/Conversion/XeGPUToSPIRV/XeGPUToSPIRV.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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()); }