1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

[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 0830493d09
commit 30c1b2684f

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 "";