Skip to content

Commit

Permalink
[MLIR][Doc] Fix NamedAttribute API in code sample (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
joker-eph committed Apr 24, 2024
1 parent a45eb62 commit fd92735
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mlir/docs/Tutorials/UnderstandingTheIRStructure.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ the nested regions and print them individually:
if (!op->getAttrs().empty()) {
printIndent() << op->getAttrs().size() << " attributes:\n";
for (NamedAttribute attr : op->getAttrs())
printIndent() << " - '" << attr.first << "' : '" << attr.second
<< "'\n";
printIndent() << " - '" << attr.getName() << "' : '"
<< attr.getValue() << "'\n";
}

// Recurse into each of the regions attached to the operation.
Expand Down

0 comments on commit fd92735

Please sign in to comment.