diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-10-09 16:50:55 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-10-09 16:50:55 +0000 |
| commit | 14c71c6644cee5cb704fbf750edf1558fa0bf3c5 (patch) | |
| tree | 811607e918e6ca1a3d96bf0950109a12a284a5ca | |
| parent | 41dc5a6e862702f270ae5d804654ab1484e1535e (diff) | |
| download | bcm5719-llvm-14c71c6644cee5cb704fbf750edf1558fa0bf3c5.tar.gz bcm5719-llvm-14c71c6644cee5cb704fbf750edf1558fa0bf3c5.zip | |
Analysis: Make CFG::graph_iterator dereference to non-const
Since the original commit in r145858, we've had `CFG::graph_iterator`
and `CFG::const_graph_iterator`, and both have derefenced to a
`const`-ified `value_type`. The former has an implicit conversion to
non-`const`, which is how this worked at all until r249782 started using
the dereference operator (partially reverted in r249783).
This fixes the non-const iterator to be non-const (sometimes
const-iterators are intentional, but with a separate const-ified class
(and a non-const implicit conversion leak) that's not likely to be the
case here).
llvm-svn: 249849
| -rw-r--r-- | clang/include/clang/Analysis/CFG.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/include/clang/Analysis/CFG.h b/clang/include/clang/Analysis/CFG.h index c39db8268f7..293990c88e7 100644 --- a/clang/include/clang/Analysis/CFG.h +++ b/clang/include/clang/Analysis/CFG.h @@ -766,7 +766,7 @@ public: /// (not a pointer to CFGBlock). class graph_iterator { public: - typedef const CFGBlock value_type; + typedef CFGBlock value_type; typedef value_type& reference; typedef value_type* pointer; typedef BumpVector<CFGBlock*>::iterator ImplTy; |

