Skip to content

Commit dd66393

Browse files
Migrate to {} instead of T().
1 parent 1d331d9 commit dd66393

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

mlir/unittests/Debug/FileLineColLocBreakpointManagerTest.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ static Operation *createOp(MLIRContext *context, Location loc,
2323
StringRef operationName,
2424
unsigned int numRegions = 0) {
2525
context->allowUnregisteredDialects();
26-
return Operation::create(loc, OperationName(operationName, context),
27-
TypeRange(), ValueRange(), std::nullopt,
28-
OpaqueProperties(nullptr), BlockRange(), numRegions);
26+
return Operation::create(loc, OperationName(operationName, context), {}, {},
27+
std::nullopt, OpaqueProperties(nullptr), {},
28+
numRegions);
2929
}
3030

3131
namespace {

mlir/unittests/IR/OperationSupportTest.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ static Operation *createOp(MLIRContext *context, ArrayRef<Value> operands = {},
2222
ArrayRef<Type> resultTypes = {},
2323
unsigned int numRegions = 0) {
2424
context->allowUnregisteredDialects();
25-
return Operation::create(
26-
UnknownLoc::get(context), OperationName("foo.bar", context), resultTypes,
27-
operands, std::nullopt, nullptr, BlockRange(), numRegions);
25+
return Operation::create(UnknownLoc::get(context),
26+
OperationName("foo.bar", context), resultTypes,
27+
operands, std::nullopt, nullptr, {}, numRegions);
2828
}
2929

3030
namespace {

0 commit comments

Comments
 (0)