mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 21:32:39 +00:00
Bugfix for calling dump() after the links vector has been cleared
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5533 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a954b5eb3a
commit
1fcc101b1c
@ -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)
|
||||
|
@ -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…
x
Reference in New Issue
Block a user