mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-01 00:25:01 +00:00
Bugfix for calling dump() after the links vector has been cleared
llvm-svn: 5533
This commit is contained in:
parent
de261140d0
commit
fade2f7d18
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user