OSDN Git Service

[LCG] Fold otherwise unused variable into assert.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 5 Aug 2017 08:28:48 +0000 (08:28 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 5 Aug 2017 08:28:48 +0000 (08:28 +0000)
No functionality change intended.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310173 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/LazyCallGraph.cpp

index 55869a1..a1cb447 100644 (file)
@@ -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