@@ -32,8 +32,8 @@ TEST(OperandStorageTest, NonResizable) {
3232 MLIRContext context;
3333 Builder builder (&context);
3434
35- Operation *useOp = createOp (&context, /* operands= */ ArrayRef<Value>(),
36- builder.getIntegerType (16 ));
35+ Operation *useOp =
36+ createOp (&context, /* operands= */ std:: nullopt , builder.getIntegerType (16 ));
3737 Value operand = useOp->getResult (0 );
3838
3939 // Create a non-resizable operation with one operand.
@@ -56,8 +56,8 @@ TEST(OperandStorageTest, Resizable) {
5656 MLIRContext context;
5757 Builder builder (&context);
5858
59- Operation *useOp = createOp (&context, /* operands= */ ArrayRef<Value>(),
60- builder.getIntegerType (16 ));
59+ Operation *useOp =
60+ createOp (&context, /* operands= */ std:: nullopt , builder.getIntegerType (16 ));
6161 Value operand = useOp->getResult (0 );
6262
6363 // Create a resizable operation with one operand.
@@ -84,8 +84,8 @@ TEST(OperandStorageTest, RangeReplace) {
8484 MLIRContext context;
8585 Builder builder (&context);
8686
87- Operation *useOp = createOp (&context, /* operands= */ ArrayRef<Value>(),
88- builder.getIntegerType (16 ));
87+ Operation *useOp =
88+ createOp (&context, /* operands= */ std:: nullopt , builder.getIntegerType (16 ));
8989 Value operand = useOp->getResult (0 );
9090
9191 // Create a resizable operation with one operand.
@@ -120,8 +120,8 @@ TEST(OperandStorageTest, MutableRange) {
120120 MLIRContext context;
121121 Builder builder (&context);
122122
123- Operation *useOp = createOp (&context, /* operands= */ ArrayRef<Value>(),
124- builder.getIntegerType (16 ));
123+ Operation *useOp =
124+ createOp (&context, /* operands= */ std:: nullopt , builder.getIntegerType (16 ));
125125 Value operand = useOp->getResult (0 );
126126
127127 // Create a resizable operation with one operand.
@@ -159,7 +159,7 @@ TEST(OperandStorageTest, RangeErase) {
159159
160160 Type type = builder.getNoneType ();
161161 Operation *useOp =
162- createOp (&context, /* operands=*/ ArrayRef<Value>() , {type, type});
162+ createOp (&context, /* operands=*/ std:: nullopt , {type, type});
163163 Value operand1 = useOp->getResult (0 );
164164 Value operand2 = useOp->getResult (1 );
165165
@@ -189,8 +189,8 @@ TEST(OperationOrderTest, OrderIsAlwaysValid) {
189189 MLIRContext context;
190190 Builder builder (&context);
191191
192- Operation *containerOp = createOp (&context, /* operands=*/ ArrayRef<Value>() ,
193- /* resultTypes=*/ ArrayRef<Type>() ,
192+ Operation *containerOp = createOp (&context, /* operands=*/ std:: nullopt ,
193+ /* resultTypes=*/ std:: nullopt ,
194194 /* numRegions=*/ 1 );
195195 Region ®ion = containerOp->getRegion (0 );
196196 Block *block = new Block ();
0 commit comments