Skip to content

Commit d7793e5

Browse files
committed
Fix gcc 7.5 compile error.
1 parent 5d40a94 commit d7793e5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mlir/lib/Conversion/XeVMToLLVM/XeVMToLLVM.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,8 +544,11 @@ class LoadStorePrefetchToOCLPattern : public OpConversionPattern<OpType> {
544544
llvm::formatv("{0}_{1}b_{2}r{3}x{4}c", funcName, op.getElemSizeInBits(),
545545
op.getTileHeight(), op.getTileWidth(), op.getVBlocks())
546546
.str();
547+
std::string prefetchCode("");
548+
if (!isPrefetch)
549+
prefetchCode += "P";
547550
funcName = llvm::formatv("_Z{0}{1}PU3AS1viiiDv2_i{2}{3}", funcName.size(),
548-
funcName, isPrefetch ? "" : "P", bitWidthId)
551+
funcName, prefetchCode, bitWidthId)
549552
.str();
550553
SmallVector<Type> argTypes;
551554
for (auto arg : args) {

0 commit comments

Comments
 (0)