forked from OSchip/llvm-project
[mlir] Attempt to appease gcc-5 const char* -> StringLiteral conversion issu
This commit is contained in:
parent
f2c6bfa350
commit
86b14d0969
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue