diff options
author | Chris Lattner <sabre@nondot.org> | 2001-10-01 13:58:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-10-01 13:58:13 +0000 |
commit | 7295eb4ea3e3a81e697600cbca681674e4b35a20 (patch) | |
tree | 142d6b6d26c0be5a9588e6c99970b83ad25744af /include/llvm/BasicBlock.h | |
parent | 6bad546c2a4eac51eabc6ac398861dcf7d5f18bb (diff) |
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
Diffstat (limited to 'include/llvm/BasicBlock.h')
-rw-r--r-- | include/llvm/BasicBlock.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/BasicBlock.h b/include/llvm/BasicBlock.h index 11c76a3647..08516c8ca8 100644 --- a/include/llvm/BasicBlock.h +++ b/include/llvm/BasicBlock.h @@ -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*()); } |