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

Chandler Carruth via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 15 02:33:40 PDT 2018


Author: chandlerc
Date: Mon Oct 15 02:33:40 2018
New Revision: 344497

URL: http://llvm.org/viewvc/llvm-project?rev=344497&view=rev
Log:
[TI removal] Just use Instruction in the CFG printer code. NFC.

Modified:
    llvm/trunk/include/llvm/Analysis/CFGPrinter.h

Modified: llvm/trunk/include/llvm/Analysis/CFGPrinter.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/CFGPrinter.h?rev=344497&r1=344496&r2=344497&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/CFGPrinter.h (original)
+++ llvm/trunk/include/llvm/Analysis/CFGPrinter.h Mon Oct 15 02:33:40 2018
@@ -150,7 +150,7 @@ struct DOTGraphTraits<const Function*> :
   /// 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 "";
 




More information about the llvm-commits mailing list