[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:
Chandler Carruth 2018-10-15 09:17:38 +00:00
parent b99a24689b
commit c5283c9e6f
1 changed files with 1 additions and 1 deletions

View File

@ -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*(); }