Skip to content

Commit

Permalink
CFGDiff: Fix one place where I'd left BasicBlock* hardcoded
Browse files Browse the repository at this point in the history
  • Loading branch information
dwblaikie committed Mar 12, 2020
1 parent f4f2706 commit dcaf13a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions llvm/include/llvm/IR/CFGDiff.h
Expand Up @@ -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"
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit dcaf13a

Please sign in to comment.