[PATCH] D72957: [mlir] Unbreak MSVC build with implicit constructor

Nicolas Vasilache via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 17 16:17:58 PST 2020


nicolasvasilache updated this revision to Diff 238925.
nicolasvasilache added a comment.

Format.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D72957/new/

https://reviews.llvm.org/D72957

Files:
  mlir/include/mlir/IR/Attributes.h


Index: mlir/include/mlir/IR/Attributes.h
===================================================================
--- mlir/include/mlir/IR/Attributes.h
+++ mlir/include/mlir/IR/Attributes.h
@@ -231,8 +231,9 @@
 public:
   template <typename AttrTy>
   llvm::iterator_range<attr_value_iterator<AttrTy>> getAsRange() {
-    return llvm::make_range(attr_value_iterator<AttrTy>(begin()),
-                            attr_value_iterator<AttrTy>(end()));
+    return llvm::make_range<attr_value_iterator<AttrTy>>(
+        attr_value_iterator<AttrTy>(begin()),
+        attr_value_iterator<AttrTy>(end()));
   }
 };
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72957.238925.patch
Type: text/x-patch
Size: 608 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200118/ca50c470/attachment.bin>


More information about the llvm-commits mailing list