mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
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:
@@ -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*()); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user