File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ class OpState {
115115 MLIRContext *getContext () { return getOperation ()->getContext (); }
116116
117117 // / Print the operation to the given stream.
118- void print (raw_ostream &os, OpPrintingFlags flags = std:: nullopt ) {
118+ void print (raw_ostream &os, OpPrintingFlags flags = {} ) {
119119 state->print (os, flags);
120120 }
121121 void print (raw_ostream &os, AsmState &asmState) {
Original file line number Diff line number Diff line change @@ -318,7 +318,7 @@ class alignas(8) Operation final
318318 // / take O(N) where N is the number of operations within the parent block.
319319 bool isBeforeInBlock (Operation *other);
320320
321- void print (raw_ostream &os, const OpPrintingFlags &flags = std:: nullopt );
321+ void print (raw_ostream &os, const OpPrintingFlags &flags = {} );
322322 void print (raw_ostream &os, AsmState &state);
323323 void dump ();
324324
Original file line number Diff line number Diff line change @@ -1176,6 +1176,7 @@ class alignas(8) OperandStorage {
11761176class OpPrintingFlags {
11771177public:
11781178 OpPrintingFlags ();
1179+ LLVM_DEPRECATED (" Use OpPrintingFlags() instead" , " OpPrintingFlags()" )
11791180 OpPrintingFlags (std::nullopt_t ) : OpPrintingFlags() {}
11801181
11811182 // / Enables the elision of large elements attributes by printing a lexically
You can’t perform that action at this time.
0 commit comments