diff --git a/mlir/include/mlir/EDSC/Builders.h b/mlir/include/mlir/EDSC/Builders.h --- a/mlir/include/mlir/EDSC/Builders.h +++ b/mlir/include/mlir/EDSC/Builders.h @@ -190,7 +190,7 @@ TemplatedIndexedValue operator()(Value index, Args... indices) { return TemplatedIndexedValue(value, index).append(indices...); } - TemplatedIndexedValue operator()(ArrayRef indices) { + TemplatedIndexedValue operator()(ValueRange indices) { return TemplatedIndexedValue(value, indices); } @@ -319,7 +319,7 @@ } private: - TemplatedIndexedValue(Value value, ArrayRef indices) + TemplatedIndexedValue(Value value, ValueRange indices) : value(value), indices(indices.begin(), indices.end()) {} TemplatedIndexedValue &append() { return *this; }