diff --git a/mlir/include/mlir/IR/TypeRange.h b/mlir/include/mlir/IR/TypeRange.h --- a/mlir/include/mlir/IR/TypeRange.h +++ b/mlir/include/mlir/IR/TypeRange.h @@ -46,9 +46,6 @@ explicit TypeRange(OperandRange values); explicit TypeRange(ResultRange values); explicit TypeRange(ValueRange values); - explicit TypeRange(ArrayRef values); - explicit TypeRange(ArrayRef values) - : TypeRange(ArrayRef(values.data(), values.size())) {} template TypeRange(ValueTypeRange values) : TypeRange(ValueRangeT(values.begin().getCurrent(), diff --git a/mlir/lib/IR/TypeRange.cpp b/mlir/lib/IR/TypeRange.cpp --- a/mlir/lib/IR/TypeRange.cpp +++ b/mlir/lib/IR/TypeRange.cpp @@ -23,8 +23,6 @@ : TypeRange(values.begin().getBase(), values.size()) {} TypeRange::TypeRange(ResultRange values) : TypeRange(values.getBase(), values.size()) {} -TypeRange::TypeRange(ArrayRef values) - : TypeRange(values.data(), values.size()) {} TypeRange::TypeRange(ValueRange values) : TypeRange(OwnerT(), values.size()) { if (count == 0) return;