Bugfix for calling dump() after the links vector has been cleared

llvm-svn: 5533
This commit is contained in:
Chris Lattner 2003-02-10 22:46:47 +00:00
parent de261140d0
commit fade2f7d18

View File

@ -25,8 +25,7 @@ class DSNodeIterator : public forward_iterator<const DSNode, ptrdiff_t> {
DSNodeIterator(NodeTy *N) : Node(N), Offset(0) {} // begin iterator
DSNodeIterator(NodeTy *N, bool) // Create end iterator
: Node(N) {
Offset = (N->getSize()+((1 << DS::PointerShift)-1)) &
~((1 << DS::PointerShift)-1);
Offset = N->getNumLinks() << DS::PointerShift;
}
public:
DSNodeIterator(const DSNodeHandle &NH)