[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 13:46:11 PST 2020
nicolasvasilache created this revision.
Herald added subscribers: llvm-commits, liufengdb, lucyrfox, mgester, arpith-jacob, antiagainst, shauheen, burmako, jpienaar, rriddle, mehdi_amini.
Herald added a project: LLVM.
Repository:
rG LLVM Github Monorepo
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
@@ -222,7 +222,7 @@
class attr_value_iterator final
: public llvm::mapped_iterator<iterator, AttrTy (*)(Attribute)> {
public:
- explicit attr_value_iterator(iterator it)
+ attr_value_iterator(iterator it) /* implicit */
: llvm::mapped_iterator<iterator, AttrTy (*)(Attribute)>(
it, [](Attribute attr) { return attr.cast<AttrTy>(); }) {}
AttrTy operator*() { return (*this->I).template cast<AttrTy>(); }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72957.238882.patch
Type: text/x-patch
Size: 636 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200117/2cf2a9eb/attachment.bin>
More information about the llvm-commits
mailing list