Skip to content

Commit 254ecfb

Browse files
committed
[mlir][ods] fix c++11 build
1 parent cebb0a6 commit 254ecfb

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.cpp

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -420,8 +420,9 @@ void AttrOrTypeFormat::genParamsParser(ParamsDirective *el, FmtContext &ctx,
420420
raw_ostream &os) {
421421
os << " // Parse parameter list\n";
422422
llvm::interleave(
423-
el->getParams(), [&](auto param) { genVariableParser(param, ctx, os); },
424-
[&]() { genLiteralParser(",", ctx, os); });
423+
el->getParams(),
424+
[&](auto param) { this->genVariableParser(param, ctx, os); },
425+
[&]() { this->genLiteralParser(",", ctx, os); });
425426
}
426427

427428
void AttrOrTypeFormat::genStructParser(StructDirective *el, FmtContext &ctx,
@@ -522,21 +523,22 @@ void AttrOrTypeFormat::genVariablePrinter(const AttrOrTypeParameter &param,
522523
void AttrOrTypeFormat::genParamsPrinter(ParamsDirective *el, FmtContext &ctx,
523524
raw_ostream &os) {
524525
llvm::interleave(
525-
el->getParams(), [&](auto param) { genVariablePrinter(param, ctx, os); },
526-
[&]() { genLiteralPrinter(",", ctx, os); });
526+
el->getParams(),
527+
[&](auto param) { this->genVariablePrinter(param, ctx, os); },
528+
[&]() { this->genLiteralPrinter(",", ctx, os); });
527529
}
528530

529531
void AttrOrTypeFormat::genStructPrinter(StructDirective *el, FmtContext &ctx,
530532
raw_ostream &os) {
531533
llvm::interleave(
532534
el->getParams(),
533535
[&](auto param) {
534-
genLiteralPrinter(param.getName(), ctx, os);
535-
genLiteralPrinter("=", ctx, os);
536+
this->genLiteralPrinter(param.getName(), ctx, os);
537+
this->genLiteralPrinter("=", ctx, os);
536538
os << tgfmt(" $_printer << ' ';\n", &ctx);
537-
genVariablePrinter(param, ctx, os);
539+
this->genVariablePrinter(param, ctx, os);
538540
},
539-
[&]() { genLiteralPrinter(",", ctx, os); });
541+
[&]() { this->genLiteralPrinter(",", ctx, os); });
540542
}
541543

542544
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)