From b114d1f985c6d6224d0f0cc520fa7ec63d63095c Mon Sep 17 00:00:00 2001 From: erwei-xilinx Date: Thu, 23 Jan 2025 12:24:08 -0800 Subject: [PATCH] Remove feature introduced in C++20 to avoid hard dependence to C++20 (#877) * Remove feature introduced in c++20 to avoid hard dependence to c++20 * Switch to using c++14 feature with auto in lambda --- mlir/lib/Util/Dependency.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mlir/lib/Util/Dependency.cpp b/mlir/lib/Util/Dependency.cpp index a75693471..7229c625f 100644 --- a/mlir/lib/Util/Dependency.cpp +++ b/mlir/lib/Util/Dependency.cpp @@ -963,8 +963,7 @@ getAllReadAccessedMemrefOperandsFromOp(Operation *op) { std::get<2>(entry.second) = strides; return entry; }; - auto pushMemrefEntryToVector = [](T entry, - SmallVector &vector) { + auto pushMemrefEntryToVector = [](auto entry, auto &vector) { if (!isa(entry.first.getType())) return; vector.push_back(entry);