[Mlir-commits] [mlir] 24657a9 - [NFC] Fix Windows builds that use MSVC 14.x
Rahul Joshi
llvmlistbot at llvm.org
Thu Mar 23 19:17:15 PDT 2023
Author: Rahul Joshi
Date: 2023-03-23T19:16:44-07:00
New Revision: 24657a95c1447cc95f2634de50ff4008d8b17d4c
URL: https://github.com/llvm/llvm-project/commit/24657a95c1447cc95f2634de50ff4008d8b17d4c
DIFF: https://github.com/llvm/llvm-project/commit/24657a95c1447cc95f2634de50ff4008d8b17d4c.diff
LOG: [NFC] Fix Windows builds that use MSVC 14.x
Differential Revision: https://reviews.llvm.org/D146769
Added:
Modified:
mlir/lib/IR/AffineMap.cpp
Removed:
################################################################################
diff --git a/mlir/lib/IR/AffineMap.cpp b/mlir/lib/IR/AffineMap.cpp
index 9ac181f46b578..6c9034d446341 100644
--- a/mlir/lib/IR/AffineMap.cpp
+++ b/mlir/lib/IR/AffineMap.cpp
@@ -744,13 +744,18 @@ static AffineMap projectCommonImpl(AffineMap map,
replacements.reserve(numDimOrSym);
auto createNewDimOrSym = (isDim) ? getAffineDimExpr : getAffineSymbolExpr;
- auto replaceDims = [](AffineExpr e, ArrayRef<AffineExpr> replacements) {
+
+ using replace_fn_ty =
+ std::function<AffineExpr(AffineExpr, ArrayRef<AffineExpr>)>;
+ replace_fn_ty replaceDims = [](AffineExpr e,
+ ArrayRef<AffineExpr> replacements) {
return e.replaceDims(replacements);
};
- auto replaceSymbols = [](AffineExpr e, ArrayRef<AffineExpr> replacements) {
+ replace_fn_ty replaceSymbols = [](AffineExpr e,
+ ArrayRef<AffineExpr> replacements) {
return e.replaceSymbols(replacements);
};
- auto replaceNewDimOrSym = (isDim) ? replaceDims : replaceSymbols;
+ replace_fn_ty replaceNewDimOrSym = (isDim) ? replaceDims : replaceSymbols;
MLIRContext *context = map.getContext();
int64_t newNumDimOrSym = 0;
More information about the Mlir-commits
mailing list