aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Analysis/DataStructure/DSGraphTraits.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Analysis/DataStructure/DSGraphTraits.h')
-rw-r--r--include/llvm/Analysis/DataStructure/DSGraphTraits.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Analysis/DataStructure/DSGraphTraits.h b/include/llvm/Analysis/DataStructure/DSGraphTraits.h
index 7a21919..95cbbd7 100644
--- a/include/llvm/Analysis/DataStructure/DSGraphTraits.h
+++ b/include/llvm/Analysis/DataStructure/DSGraphTraits.h
@@ -28,7 +28,7 @@ class DSNodeIterator : public forward_iterator<const DSNode, ptrdiff_t> {
DSNodeIterator(NodeTy *N, bool) : Node(N) { // Create end iterator
Offset = N->getNumLinks() << DS::PointerShift;
if (Offset == 0 && Node->getForwardNode() &&
- (Node->NodeType & DSNode::DEAD)) // Model Forward link
+ Node->isDeadNode()) // Model Forward link
Offset += DS::PointerSize;
}
public:
@@ -47,7 +47,7 @@ public:
}
pointer operator*() const {
- if (Node->NodeType & DSNode::DEAD)
+ if (Node->isDeadNode())
return Node->getForwardNode();
else
return Node->getLink(Offset).getNode();