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 {
115
115
MLIRContext *getContext () { return getOperation ()->getContext (); }
116
116
117
117
// / 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 = {} ) {
119
119
state->print (os, flags);
120
120
}
121
121
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
318
318
// / take O(N) where N is the number of operations within the parent block.
319
319
bool isBeforeInBlock (Operation *other);
320
320
321
- void print (raw_ostream &os, const OpPrintingFlags &flags = std::nullopt );
321
+ void print (raw_ostream &os, const OpPrintingFlags &flags = {} );
322
322
void print (raw_ostream &os, AsmState &state);
323
323
void dump ();
324
324
Original file line number Diff line number Diff line change @@ -1176,6 +1176,7 @@ class alignas(8) OperandStorage {
1176
1176
class OpPrintingFlags {
1177
1177
public:
1178
1178
OpPrintingFlags ();
1179
+ LLVM_DEPRECATED (" Use OpPrintingFlags() instead" , " OpPrintingFlags()" )
1179
1180
OpPrintingFlags (std::nullopt_t ) : OpPrintingFlags() {}
1180
1181
1181
1182
// / Enables the elision of large elements attributes by printing a lexically
You can’t perform that action at this time.
0 commit comments