diff options
Diffstat (limited to 'llvm/lib/Analysis/LazyCallGraph.cpp')
-rw-r--r-- | llvm/lib/Analysis/LazyCallGraph.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/LazyCallGraph.cpp b/llvm/lib/Analysis/LazyCallGraph.cpp index 55869a10ff3..a1cb4474fff 100644 --- a/llvm/lib/Analysis/LazyCallGraph.cpp +++ b/llvm/lib/Analysis/LazyCallGraph.cpp @@ -1077,9 +1077,8 @@ LazyCallGraph::RefSCC::insertIncomingRefEdge(Node &SourceN, Node &TargetN) { void LazyCallGraph::RefSCC::removeOutgoingEdge(Node &SourceN, Node &TargetN) { assert(G->lookupRefSCC(SourceN) == this && "The source must be a member of this RefSCC."); - - RefSCC &TargetRC = *G->lookupRefSCC(TargetN); - assert(&TargetRC != this && "The target must not be a member of this RefSCC"); + assert(G->lookupRefSCC(TargetN) != this && + "The target must not be a member of this RefSCC"); #ifndef NDEBUG // In a debug build, verify the RefSCC is valid to start with and when this |