aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Analysis/DataStructure
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-07 23:02:32 +0000
committerChris Lattner <sabre@nondot.org>2004-02-07 23:02:32 +0000
commitbee5ff3ae2625044b7b6361f1b5f19c793768f2a (patch)
tree4a87f95478b32d07463c46fed39020d941f3d5d8 /include/llvm/Analysis/DataStructure
parentd1d2be3c168ff87977254798d1ef1fea0d7b3834 (diff)
downloadexternal_llvm-bee5ff3ae2625044b7b6361f1b5f19c793768f2a.zip
external_llvm-bee5ff3ae2625044b7b6361f1b5f19c793768f2a.tar.gz
external_llvm-bee5ff3ae2625044b7b6361f1b5f19c793768f2a.tar.bz2
Actually USE isForwarding method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11160 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/DataStructure')
-rw-r--r--include/llvm/Analysis/DataStructure/DSNode.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/llvm/Analysis/DataStructure/DSNode.h b/include/llvm/Analysis/DataStructure/DSNode.h
index 68b69ef..6ddc7ec 100644
--- a/include/llvm/Analysis/DataStructure/DSNode.h
+++ b/include/llvm/Analysis/DataStructure/DSNode.h
@@ -157,7 +157,7 @@ public:
bool isForwarding() const { return !ForwardNH.isNull(); }
void stopForwarding() {
- assert(!ForwardNH.isNull() &&
+ assert(isForwarding() &&
"Node isn't forwarding, cannot stopForwarding!");
ForwardNH.setNode(0);
}
@@ -313,7 +313,7 @@ public:
void dropAllReferences() {
Links.clear();
- if (!ForwardNH.isNull())
+ if (isForwarding())
ForwardNH.setNode(0);
}
@@ -340,8 +340,8 @@ private:
//
inline DSNode *DSNodeHandle::getNode() const {
assert((!N || Offset < N->Size || (N->Size == 0 && Offset == 0) ||
- !N->ForwardNH.isNull()) && "Node handle offset out of range!");
- if (N == 0 || N->ForwardNH.isNull())
+ N->isForwarding()) && "Node handle offset out of range!");
+ if (N == 0 || !N->isForwarding())
return N;
return HandleForwarding();
@@ -361,7 +361,7 @@ inline void DSNodeHandle::setNode(DSNode *n) const {
}
assert(!N || ((N->NodeType & DSNode::DEAD) == 0));
assert((!N || Offset < N->Size || (N->Size == 0 && Offset == 0) ||
- !N->ForwardNH.isNull()) && "Node handle offset out of range!");
+ N->isForwarding()) && "Node handle offset out of range!");
}
inline bool DSNodeHandle::hasLink(unsigned Num) const {