[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:57 PST 2020
    
    
  
nicolasvasilache updated this revision to Diff 238924.
nicolasvasilache added a comment.
Explicitly resolve templated type in call to make_range.
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,7 +231,8 @@
 public:
   template <typename AttrTy>
   llvm::iterator_range<attr_value_iterator<AttrTy>> getAsRange() {
-    return llvm::make_range(attr_value_iterator<AttrTy>(begin()),
+    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.238924.patch
Type: text/x-patch
Size: 580 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200118/75f624fe/attachment.bin>
    
    
More information about the llvm-commits
mailing list