diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-01-16 21:45:54 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-01-16 21:45:54 +0000 |
commit | 873bbd53a49a3a6fe5a14b65b862cd3835807f53 (patch) | |
tree | 323c0826b2de801940c78dfb4454951c2ff3b5e7 | |
parent | 39f156183de27837c52a4351fc27dc86663714d5 (diff) | |
download | llvm-873bbd53a49a3a6fe5a14b65b862cd3835807f53.zip llvm-873bbd53a49a3a6fe5a14b65b862cd3835807f53.tar.gz llvm-873bbd53a49a3a6fe5a14b65b862cd3835807f53.tar.bz2 |
Fixed invalid typedefs in the root and eop iterators for ExplodedGraph.
llvm-svn: 46091
-rw-r--r-- | clang/include/clang/Analysis/PathSensitive/ExplodedGraph.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/clang/include/clang/Analysis/PathSensitive/ExplodedGraph.h b/clang/include/clang/Analysis/PathSensitive/ExplodedGraph.h index 5b2ee02..9818095 100644 --- a/clang/include/clang/Analysis/PathSensitive/ExplodedGraph.h +++ b/clang/include/clang/Analysis/PathSensitive/ExplodedGraph.h @@ -297,18 +297,18 @@ public: } // Iterators. - typedef NodeTy* roots_iterator; - typedef const NodeTy* const_roots_iterator; - typedef NodeTy* eop_iterator; - typedef const NodeTy* const_eop_iterator; + typedef NodeTy** roots_iterator; + typedef const NodeTy** const_roots_iterator; + typedef NodeTy** eop_iterator; + typedef const NodeTy** const_eop_iterator; roots_iterator roots_begin() { - return static_cast<NodeTy*>(Roots.begin()); + return reinterpret_cast<roots_iterator>(Roots.begin()); } roots_iterator roots_end() { - return static_cast<NodeTy*>(Roots.end()); + return reinterpret_cast<roots_iterator>(Roots.end()); } const_roots_iterator roots_begin() const { @@ -320,11 +320,11 @@ public: } eop_iterator eop_begin() { - return static_cast<NodeTy*>(EndNodes.begin()); + return reinterpret_cast<eop_iterator>(EndNodes.begin()); } eop_iterator eop_end() { - return static_cast<NodeTy*>(EndNodes.end()); + return reinterpret_cast<eop_iterator>(EndNodes.end()); } const_eop_iterator eop_begin() const { |