[cfe-commits] r46091 - /cfe/trunk/include/clang/Analysis/PathSensitive/ExplodedGraph.h
Ted Kremenek
kremenek at apple.com
Wed Jan 16 13:45:54 PST 2008
Author: kremenek
Date: Wed Jan 16 15:45:54 2008
New Revision: 46091
URL: http://llvm.org/viewvc/llvm-project?rev=46091&view=rev
Log:
Fixed invalid typedefs in the root and eop iterators for ExplodedGraph.
Modified:
cfe/trunk/include/clang/Analysis/PathSensitive/ExplodedGraph.h
Modified: cfe/trunk/include/clang/Analysis/PathSensitive/ExplodedGraph.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Analysis/PathSensitive/ExplodedGraph.h?rev=46091&r1=46090&r2=46091&view=diff
==============================================================================
--- cfe/trunk/include/clang/Analysis/PathSensitive/ExplodedGraph.h (original)
+++ cfe/trunk/include/clang/Analysis/PathSensitive/ExplodedGraph.h Wed Jan 16 15:45:54 2008
@@ -297,18 +297,18 @@
}
// 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 @@
}
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 {
More information about the cfe-commits
mailing list