diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2017-08-05 08:33:16 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2017-08-05 08:33:16 +0000 |
| commit | 691d0243a5ed6995f03f7a640fed0c59194b22da (patch) | |
| tree | b216eebd7381b455fd764fbcf55279cd42167de5 /llvm/lib/Analysis | |
| parent | ef42fd43f4699570b4d333890fecc6c8924f40c2 (diff) | |
| download | bcm5719-llvm-691d0243a5ed6995f03f7a640fed0c59194b22da.tar.gz bcm5719-llvm-691d0243a5ed6995f03f7a640fed0c59194b22da.zip | |
[LCG] Remove yet another variable only used inside of asserts.
llvm-svn: 310174
Diffstat (limited to 'llvm/lib/Analysis')
| -rw-r--r-- | llvm/lib/Analysis/LazyCallGraph.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/LazyCallGraph.cpp b/llvm/lib/Analysis/LazyCallGraph.cpp index a1cb4474fff..da09426a063 100644 --- a/llvm/lib/Analysis/LazyCallGraph.cpp +++ b/llvm/lib/Analysis/LazyCallGraph.cpp @@ -917,10 +917,10 @@ void LazyCallGraph::RefSCC::insertOutgoingEdge(Node &SourceN, Node &TargetN, assert(G->lookupRefSCC(SourceN) == this && "Source must be in this RefSCC."); - RefSCC &TargetC = *G->lookupRefSCC(TargetN); - assert(&TargetC != this && "Target must not be in this RefSCC."); + assert(G->lookupRefSCC(TargetN) != this && + "Target must not be in this RefSCC."); #ifdef EXPENSIVE_CHECKS - assert(TargetC.isDescendantOf(*this) && + assert(G->lookupRefSCC(TargetN)->isDescendantOf(*this) && "Target must be a descendant of the Source."); #endif |

