[mlir] Attempt to appease gcc-5 const char* -> StringLiteral conversion issu

This commit is contained in:
Nicolas Vasilache 2020-10-02 10:02:53 -04:00
parent f2c6bfa350
commit 86b14d0969
1 changed files with 2 additions and 2 deletions

View File

@ -2644,7 +2644,7 @@ static void printOpWithOffsetsSizesAndStrides(
OpAsmPrinter &p, OpType op,
llvm::function_ref<void(OpAsmPrinter &p, OpType op)> 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<ParseResult(OpAsmParser &p,
OpAsmParser::OperandType &dstInfo)>
parseExtraOperand = nullptr,
StringLiteral resultTypeKeyword = "to") {
StringRef resultTypeKeyword = "to") {
OpAsmParser::OperandType srcInfo, dstInfo;
SmallVector<OpAsmParser::OperandType, 4> offsetsInfo, sizesInfo, stridesInfo;
auto indexType = parser.getBuilder().getIndexType();