Skip to content

Commit b114d1f

Browse files
authored
Remove feature introduced in C++20 to avoid hard dependence to C++20 (Xilinx#877)
* Remove feature introduced in c++20 to avoid hard dependence to c++20 * Switch to using c++14 feature with auto in lambda
1 parent e493007 commit b114d1f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mlir/lib/Util/Dependency.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -963,8 +963,7 @@ getAllReadAccessedMemrefOperandsFromOp(Operation *op) {
963963
std::get<2>(entry.second) = strides;
964964
return entry;
965965
};
966-
auto pushMemrefEntryToVector = []<typename T>(T entry,
967-
SmallVector<T> &vector) {
966+
auto pushMemrefEntryToVector = [](auto entry, auto &vector) {
968967
if (!isa<MemRefType>(entry.first.getType()))
969968
return;
970969
vector.push_back(entry);

0 commit comments

Comments
 (0)