[mlir] Fix call of overloaded ‘dropResults(<brace-enclosed initializer list>)’ is...
authorQuentin Colombet <quentin.colombet@gmail.com>
Thu, 23 Mar 2023 11:43:34 +0000 (12:43 +0100)
committerQuentin Colombet <quentin.colombet@gmail.com>
Thu, 23 Mar 2023 11:45:54 +0000 (12:45 +0100)
NFC

mlir/include/mlir/IR/AffineMap.h

index 75a268c..e21dc9c 100644 (file)
@@ -249,7 +249,9 @@ public:
 
   /// 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.