summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2017-08-05 08:28:48 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2017-08-05 08:28:48 +0000
commitef42fd43f4699570b4d333890fecc6c8924f40c2 (patch)
tree1d19beac3b9cc14300c1f5cd048d0194855f6490 /llvm/lib
parentb94972cb827c21374d06c73fa3b5df5e2e2b2216 (diff)
downloadbcm5719-llvm-ef42fd43f4699570b4d333890fecc6c8924f40c2.tar.gz
bcm5719-llvm-ef42fd43f4699570b4d333890fecc6c8924f40c2.zip
[LCG] Fold otherwise unused variable into assert.
No functionality change intended. llvm-svn: 310173
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Analysis/LazyCallGraph.cpp5
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
OpenPOWER on IntegriCloud