From: Nicolas Vasilache Date: Fri, 2 Oct 2020 14:02:53 +0000 (-0400) Subject: [mlir] Attempt to appease gcc-5 const char* -> StringLiteral conversion issu X-Git-Tag: llvmorg-13-init~10287 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=86b14d0969ebdf51674df6d41c5e88a8d34879e8;p=platform%2Fupstream%2Fllvm.git [mlir] Attempt to appease gcc-5 const char* -> StringLiteral conversion issu --- 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();