[llvm] dcaf13a - CFGDiff: Fix one place where I'd left BasicBlock* hardcoded

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 12 16:20:37 PDT 2020


Author: David Blaikie
Date: 2020-03-12T16:18:21-07:00
New Revision: dcaf13a4048df3dad55f1a28cde7cefc99ccc057

URL: https://github.com/llvm/llvm-project/commit/dcaf13a4048df3dad55f1a28cde7cefc99ccc057
DIFF: https://github.com/llvm/llvm-project/commit/dcaf13a4048df3dad55f1a28cde7cefc99ccc057.diff

LOG: CFGDiff: Fix one place where I'd left BasicBlock* hardcoded

Added: 
    

Modified: 
    llvm/include/llvm/IR/CFGDiff.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/IR/CFGDiff.h b/llvm/include/llvm/IR/CFGDiff.h
index 0b128ffd86f6..f40434cc5d4e 100644
--- a/llvm/include/llvm/IR/CFGDiff.h
+++ b/llvm/include/llvm/IR/CFGDiff.h
@@ -17,7 +17,6 @@
 #include "llvm/ADT/GraphTraits.h"
 #include "llvm/ADT/iterator.h"
 #include "llvm/ADT/iterator_range.h"
-#include "llvm/IR/BasicBlock.h"
 #include "llvm/IR/CFG.h"
 #include "llvm/Support/CFGUpdate.h"
 #include "llvm/Support/type_traits.h"
@@ -83,7 +82,7 @@ template <typename NodePtr, bool InverseGraph = false> class GraphDiff {
   UpdateMapType SuccDelete;
   UpdateMapType PredInsert;
   UpdateMapType PredDelete;
-  // Using a singleton empty vector for all BasicBlock requests with no
+  // Using a singleton empty vector for all node requests with no
   // children.
   SmallVector<NodePtr, 1> Empty;
 
@@ -160,7 +159,7 @@ template <typename GraphT, bool InverseGraph = false, bool InverseEdge = false,
 struct CFGViewChildren {
   using DataRef = const GraphDiff<typename GT::NodeRef, InverseGraph> *;
   using RawNodeRef = typename GT::NodeRef;
-  using NodeRef = std::pair<DataRef, BasicBlock *>;
+  using NodeRef = std::pair<DataRef, RawNodeRef>;
 
   using ExistingChildIterator =
       WrappedPairNodeDataIterator<typename GT::ChildIteratorType, NodeRef,


        


More information about the llvm-commits mailing list