summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-08-16 21:55:56 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-08-16 21:55:56 +0000
commit04a452b712929122aadb121d9f94e330202a63cf (patch)
tree59de2751959a1cb50a51bfaded1f8c637fbef449 /llvm
parent63234c1bbdc1d30f598d69f853327486d3a5baec (diff)
downloadbcm5719-llvm-04a452b712929122aadb121d9f94e330202a63cf.tar.gz
bcm5719-llvm-04a452b712929122aadb121d9f94e330202a63cf.zip
Add difference_type to ImmutableMap/Set iterators so they have a complete set of typedefs.
llvm-svn: 188579
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/ADT/ImmutableMap.h1
-rw-r--r--llvm/include/llvm/ADT/ImmutableSet.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/llvm/include/llvm/ADT/ImmutableMap.h b/llvm/include/llvm/ADT/ImmutableMap.h
index a667479a4d1..8f8fb987704 100644
--- a/llvm/include/llvm/ADT/ImmutableMap.h
+++ b/llvm/include/llvm/ADT/ImmutableMap.h
@@ -211,6 +211,7 @@ public:
friend class ImmutableMap;
public:
+ typedef ptrdiff_t difference_type;
typedef typename ImmutableMap<KeyT,ValT,ValInfo>::value_type value_type;
typedef typename ImmutableMap<KeyT,ValT,ValInfo>::value_type_ref reference;
typedef typename iterator::value_type *pointer;
diff --git a/llvm/include/llvm/ADT/ImmutableSet.h b/llvm/include/llvm/ADT/ImmutableSet.h
index fbdf066e61a..2a0579e29ee 100644
--- a/llvm/include/llvm/ADT/ImmutableSet.h
+++ b/llvm/include/llvm/ADT/ImmutableSet.h
@@ -1060,6 +1060,7 @@ public:
friend class ImmutableSet<ValT,ValInfo>;
public:
+ typedef ptrdiff_t difference_type;
typedef typename ImmutableSet<ValT,ValInfo>::value_type value_type;
typedef typename ImmutableSet<ValT,ValInfo>::value_type_ref reference;
typedef typename iterator::value_type *pointer;
OpenPOWER on IntegriCloud