Skip to content

Commit

Permalink
Remove feature introduced in C++20 to avoid hard dependence to C++20 (X…
Browse files Browse the repository at this point in the history
…ilinx#877)

* Remove feature introduced in c++20 to avoid hard dependence to c++20

* Switch to using c++14 feature with auto in lambda
  • Loading branch information
erwei-xilinx authored Jan 23, 2025
1 parent e493007 commit b114d1f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mlir/lib/Util/Dependency.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -963,8 +963,7 @@ getAllReadAccessedMemrefOperandsFromOp(Operation *op) {
std::get<2>(entry.second) = strides;
return entry;
};
auto pushMemrefEntryToVector = []<typename T>(T entry,
SmallVector<T> &vector) {
auto pushMemrefEntryToVector = [](auto entry, auto &vector) {
if (!isa<MemRefType>(entry.first.getType()))
return;
vector.push_back(entry);
Expand Down

0 comments on commit b114d1f

Please sign in to comment.