[TI removal] Just use Instruction in the CFG printer code. NFC.

llvm-svn: 344497
This commit is contained in:
Chandler Carruth 2018-10-15 09:33:40 +00:00
parent a3849490b1
commit f21ce5df77
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ struct DOTGraphTraits<const Function*> : public DefaultDOTGraphTraits {
/// Display the raw branch weights from PGO.
std::string getEdgeAttributes(const BasicBlock *Node, succ_const_iterator I,
const Function *F) {
const TerminatorInst *TI = Node->getTerminator();
const Instruction *TI = Node->getTerminator();
if (TI->getNumSuccessors() == 1)
return "";