[PATCH] D52260: Fix DenseSet::ConstIterator typedefs
Brad Moody via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 19 00:19:57 PDT 2018
bmoody created this revision.
bmoody added a reviewer: dblaikie.
Herald added subscribers: llvm-commits, dexonsmith.
Fix DenseSet::ConstIterator pointer/reference typedefs to be const
Repository:
rL LLVM
https://reviews.llvm.org/D52260
Files:
include/llvm/ADT/DenseSet.h
Index: include/llvm/ADT/DenseSet.h
===================================================================
--- include/llvm/ADT/DenseSet.h
+++ include/llvm/ADT/DenseSet.h
@@ -136,8 +136,8 @@
public:
using difference_type = typename MapTy::const_iterator::difference_type;
using value_type = ValueT;
- using pointer = value_type *;
- using reference = value_type &;
+ using pointer = const value_type *;
+ using reference = const value_type &;
using iterator_category = std::forward_iterator_tag;
ConstIterator() = default;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52260.166071.patch
Type: text/x-patch
Size: 556 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180919/c189a804/attachment.bin>
More information about the llvm-commits
mailing list