summaryrefslogtreecommitdiff
path: root/mlir/unittests/IR/OperationSupportTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mlir/unittests/IR/OperationSupportTest.cpp')
-rw-r--r--mlir/unittests/IR/OperationSupportTest.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/mlir/unittests/IR/OperationSupportTest.cpp b/mlir/unittests/IR/OperationSupportTest.cpp
index 18ee9d71cb9f..6ea74a988ca8 100644
--- a/mlir/unittests/IR/OperationSupportTest.cpp
+++ b/mlir/unittests/IR/OperationSupportTest.cpp
@@ -18,9 +18,8 @@
using namespace mlir;
using namespace mlir::detail;
-static Operation *createOp(MLIRContext *context,
- ArrayRef<Value> operands = std::nullopt,
- ArrayRef<Type> resultTypes = std::nullopt,
+static Operation *createOp(MLIRContext *context, ArrayRef<Value> operands = {},
+ ArrayRef<Type> resultTypes = {},
unsigned int numRegions = 0) {
context->allowUnregisteredDialects();
return Operation::create(