forked from OSchip/llvm-project
[TI removal] Remove a unnecessary use of `TerminatorInst` from an IR
header. NFC. Part of the removal of `TerminatorInst` from the type hierarchy. llvm-svn: 344495
This commit is contained in:
parent
b99a24689b
commit
c5283c9e6f
|
@ -73,7 +73,7 @@ public:
|
|||
|
||||
inline reference operator*() const {
|
||||
assert(!It.atEnd() && "pred_iterator out of range!");
|
||||
return cast<TerminatorInst>(*It)->getParent();
|
||||
return cast<Instruction>(*It)->getParent();
|
||||
}
|
||||
inline pointer *operator->() const { return &operator*(); }
|
||||
|
||||
|
|
Loading…
Reference in New Issue