Skip to content

Commit 873bbd5

Browse files
committed
Fixed invalid typedefs in the root and eop iterators for ExplodedGraph.
llvm-svn: 46091
1 parent 39f1561 commit 873bbd5

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

clang/include/clang/Analysis/PathSensitive/ExplodedGraph.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -297,18 +297,18 @@ class ExplodedGraph : public ExplodedGraphImpl {
297297
}
298298

299299
// Iterators.
300-
typedef NodeTy* roots_iterator;
301-
typedef const NodeTy* const_roots_iterator;
302-
typedef NodeTy* eop_iterator;
303-
typedef const NodeTy* const_eop_iterator;
300+
typedef NodeTy** roots_iterator;
301+
typedef const NodeTy** const_roots_iterator;
302+
typedef NodeTy** eop_iterator;
303+
typedef const NodeTy** const_eop_iterator;
304304

305305

306306
roots_iterator roots_begin() {
307-
return static_cast<NodeTy*>(Roots.begin());
307+
return reinterpret_cast<roots_iterator>(Roots.begin());
308308
}
309309

310310
roots_iterator roots_end() {
311-
return static_cast<NodeTy*>(Roots.end());
311+
return reinterpret_cast<roots_iterator>(Roots.end());
312312
}
313313

314314
const_roots_iterator roots_begin() const {
@@ -320,11 +320,11 @@ class ExplodedGraph : public ExplodedGraphImpl {
320320
}
321321

322322
eop_iterator eop_begin() {
323-
return static_cast<NodeTy*>(EndNodes.begin());
323+
return reinterpret_cast<eop_iterator>(EndNodes.begin());
324324
}
325325

326326
eop_iterator eop_end() {
327-
return static_cast<NodeTy*>(EndNodes.end());
327+
return reinterpret_cast<eop_iterator>(EndNodes.end());
328328
}
329329

330330
const_eop_iterator eop_begin() const {

0 commit comments

Comments
 (0)