Skip to content

Commit

Permalink
[LCG] Fold otherwise unused variable into assert.
Browse files Browse the repository at this point in the history
No functionality change intended.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310173 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
d0k committed Aug 5, 2017
1 parent e1f2d6c commit e291555
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/Analysis/LazyCallGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e291555

Please sign in to comment.