Skip to content

Commit

Permalink
[mlir] Drop uses of operator<<(raw_ostream &OS, const Optional<T> &O)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskRay committed Dec 16, 2022
1 parent 8310bec commit d20f749
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mlir/lib/IR/AsmPrinter.cpp
Expand Up @@ -1353,7 +1353,7 @@ void SSANameState::printValueID(Value value, bool printResultNo,
}

if (resultNo && printResultNo)
stream << '#' << resultNo;
stream << '#' << *resultNo;
}

void SSANameState::printOperationID(Operation *op, raw_ostream &stream) const {
Expand Down
2 changes: 1 addition & 1 deletion mlir/lib/Tools/PDLL/AST/NodePrinter.cpp
Expand Up @@ -330,7 +330,7 @@ void NodePrinter::printImpl(const NamedAttributeDecl *decl) {
void NodePrinter::printImpl(const OpNameDecl *decl) {
os << "OpNameDecl " << decl;
if (Optional<StringRef> name = decl->getName())
os << " Name<" << name << ">";
os << " Name<" << *name << ">";
os << "\n";
}

Expand Down

0 comments on commit d20f749

Please sign in to comment.