From 86b14d0969ebdf51674df6d41c5e88a8d34879e8 Mon Sep 17 00:00:00 2001 From: Nicolas Vasilache Date: Fri, 2 Oct 2020 10:02:53 -0400 Subject: [PATCH] [mlir] Attempt to appease gcc-5 const char* -> StringLiteral conversion issu --- mlir/lib/Dialect/StandardOps/IR/Ops.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mlir/lib/Dialect/StandardOps/IR/Ops.cpp b/mlir/lib/Dialect/StandardOps/IR/Ops.cpp index 7f4e2ff..37d8d73 100644 --- a/mlir/lib/Dialect/StandardOps/IR/Ops.cpp +++ b/mlir/lib/Dialect/StandardOps/IR/Ops.cpp @@ -2644,7 +2644,7 @@ static void printOpWithOffsetsSizesAndStrides( OpAsmPrinter &p, OpType op, llvm::function_ref printExtraOperands = [](OpAsmPrinter &p, OpType op) {}, - StringLiteral resultTypeKeyword = "to") { + StringRef resultTypeKeyword = "to") { int stdDotLen = StandardOpsDialect::getDialectNamespace().size() + 1; p << op.getOperation()->getName().getStringRef().drop_front(stdDotLen) << ' '; p << op.source(); @@ -2677,7 +2677,7 @@ static ParseResult parseOpWithOffsetsSizesAndStrides( std::function parseExtraOperand = nullptr, - StringLiteral resultTypeKeyword = "to") { + StringRef resultTypeKeyword = "to") { OpAsmParser::OperandType srcInfo, dstInfo; SmallVector offsetsInfo, sizesInfo, stridesInfo; auto indexType = parser.getBuilder().getIndexType(); -- 2.7.4