Add support for newer cleaner isa, cast, dyn_cast

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@693 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2001-10-01 13:58:13 +00:00
parent 6bad546c2a
commit 7295eb4ea3
4 changed files with 65 additions and 3 deletions
+2 -2
View File
@@ -163,7 +163,7 @@ public:
// TODO: This is bad
// Loop to ignore constant pool references
while (It != BB->use_end() &&
((!(*It)->isInstruction()) ||
((!isa<Instruction>(*It)) ||
!(((Instruction*)(*It))->isTerminator())))
++It;
}
@@ -177,7 +177,7 @@ public:
inline bool operator!=(const _Self& x) const { return !operator==(x); }
inline pointer operator*() const {
return (*It)->castInstructionAsserting()->getParent();
return cast<Instruction>(*It)->getParent();
}
inline pointer *operator->() const { return &(operator*()); }