summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandre Ganea <alexandre.ganea@ubisoft.com>2020-01-18 12:57:16 -0500
committerHans Wennborg <hans@chromium.org>2020-01-23 01:16:18 +0100
commit6c9da109c9cee54b494b03edbfd1648b685331c3 (patch)
tree5e3afcd3bfc3e81e34d8bd67b696cfb7deda5505
parent029140ee1ca99e23558c774bb23257a4ea796069 (diff)
downloadbcm5719-llvm-6c9da109c9cee54b494b03edbfd1648b685331c3.tar.gz
bcm5719-llvm-6c9da109c9cee54b494b03edbfd1648b685331c3.zip
[mlir] Fix compilation with VS2019.
(cherry picked from commit e3d92b7442eaf3319f84bc060492df5b7ac3e9a1)
-rw-r--r--mlir/include/mlir/IR/Attributes.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/mlir/include/mlir/IR/Attributes.h b/mlir/include/mlir/IR/Attributes.h
index 49f42affb56..ed82ef11175 100644
--- a/mlir/include/mlir/IR/Attributes.h
+++ b/mlir/include/mlir/IR/Attributes.h
@@ -220,10 +220,11 @@ private:
/// Class for underlying value iterator support.
template <typename AttrTy>
class attr_value_iterator final
- : public llvm::mapped_iterator<iterator, AttrTy (*)(Attribute)> {
+ : public llvm::mapped_iterator<ArrayAttr::iterator,
+ AttrTy (*)(Attribute)> {
public:
- explicit attr_value_iterator(iterator it)
- : llvm::mapped_iterator<iterator, AttrTy (*)(Attribute)>(
+ explicit attr_value_iterator(ArrayAttr::iterator it)
+ : llvm::mapped_iterator<ArrayAttr::iterator, AttrTy (*)(Attribute)>(
it, [](Attribute attr) { return attr.cast<AttrTy>(); }) {}
AttrTy operator*() { return (*this->I).template cast<AttrTy>(); }
};
OpenPOWER on IntegriCloud