[TI removal] Remove a unnecessary use of `TerminatorInst` from an IR
authorChandler Carruth <chandlerc@gmail.com>
Mon, 15 Oct 2018 09:17:38 +0000 (09:17 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 15 Oct 2018 09:17:38 +0000 (09:17 +0000)
header. NFC.

Part of the removal of `TerminatorInst` from the type hierarchy.

llvm-svn: 344495

llvm/include/llvm/IR/CFG.h

index fd384ef..4140c8a 100644 (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*(); }