Skip to content

Commit fd92735

Browse files
committed
[MLIR][Doc] Fix NamedAttribute API in code sample (NFC)
1 parent a45eb62 commit fd92735

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/docs/Tutorials/UnderstandingTheIRStructure.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ the nested regions and print them individually:
4040
if (!op->getAttrs().empty()) {
4141
printIndent() << op->getAttrs().size() << " attributes:\n";
4242
for (NamedAttribute attr : op->getAttrs())
43-
printIndent() << " - '" << attr.first << "' : '" << attr.second
44-
<< "'\n";
43+
printIndent() << " - '" << attr.getName() << "' : '"
44+
<< attr.getValue() << "'\n";
4545
}
4646

4747
// Recurse into each of the regions attached to the operation.

0 commit comments

Comments
 (0)