Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mlir/include/mlir/IR/OpDefinition.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class OpState {
MLIRContext *getContext() { return getOperation()->getContext(); }

/// Print the operation to the given stream.
void print(raw_ostream &os, OpPrintingFlags flags = std::nullopt) {
void print(raw_ostream &os, OpPrintingFlags flags = {}) {
state->print(os, flags);
}
void print(raw_ostream &os, AsmState &asmState) {
Expand Down
2 changes: 1 addition & 1 deletion mlir/include/mlir/IR/Operation.h
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ class alignas(8) Operation final
/// take O(N) where N is the number of operations within the parent block.
bool isBeforeInBlock(Operation *other);

void print(raw_ostream &os, const OpPrintingFlags &flags = std::nullopt);
void print(raw_ostream &os, const OpPrintingFlags &flags = {});
void print(raw_ostream &os, AsmState &state);
void dump();

Expand Down
1 change: 1 addition & 0 deletions mlir/include/mlir/IR/OperationSupport.h
Original file line number Diff line number Diff line change
Expand Up @@ -1175,6 +1175,7 @@ class alignas(8) OperandStorage {
class OpPrintingFlags {
public:
OpPrintingFlags();
LLVM_DEPRECATED("Use OpPrintingFlags() instead", "OpPrintingFlags()")
OpPrintingFlags(std::nullopt_t) : OpPrintingFlags() {}

/// Enables the elision of large elements attributes by printing a lexically
Expand Down
Loading