[Mlir-commits] [mlir] 0cbfd68 - [mlir] Fix call of overloaded ‘dropResults(<brace-enclosed initializer list>)’ is ambiguous
Quentin Colombet
llvmlistbot at llvm.org
Thu Mar 23 04:46:44 PDT 2023
Author: Quentin Colombet
Date: 2023-03-23T12:45:54+01:00
New Revision: 0cbfd68af79fa4262e2f5f8939f94fccd439cb0b
URL: https://github.com/llvm/llvm-project/commit/0cbfd68af79fa4262e2f5f8939f94fccd439cb0b
DIFF: https://github.com/llvm/llvm-project/commit/0cbfd68af79fa4262e2f5f8939f94fccd439cb0b.diff
LOG: [mlir] Fix call of overloaded ‘dropResults(<brace-enclosed initializer list>)’ is ambiguous
NFC
Added:
Modified:
mlir/include/mlir/IR/AffineMap.h
Removed:
################################################################################
diff --git a/mlir/include/mlir/IR/AffineMap.h b/mlir/include/mlir/IR/AffineMap.h
index 75a268c48395..e21dc9c950c5 100644
--- a/mlir/include/mlir/IR/AffineMap.h
+++ b/mlir/include/mlir/IR/AffineMap.h
@@ -249,7 +249,9 @@ class AffineMap {
/// Returns a new AffineMap with the same number of dims and symbols and one
/// less result at `pos`, dropped.
- AffineMap dropResult(int64_t pos) const { return dropResults({pos}); }
+ AffineMap dropResult(int64_t pos) const {
+ return dropResults(ArrayRef({pos}));
+ }
// Returns a new AffineMap with the same number of dims and symbols, but all
// results in `positions` dropped.
More information about the Mlir-commits
mailing list