From: Chandler Carruth Date: Sat, 5 Aug 2017 08:33:16 +0000 (+0000) Subject: [LCG] Remove yet another variable only used inside of asserts. X-Git-Tag: android-x86-7.1-r4~12503 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=0b26163a3b00b7e33df90a92d42abd3199326037;p=android-x86%2Fexternal-llvm.git [LCG] Remove yet another variable only used inside of asserts. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310174 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/LazyCallGraph.cpp b/lib/Analysis/LazyCallGraph.cpp index a1cb4474fff..da09426a063 100644 --- a/lib/Analysis/LazyCallGraph.cpp +++ b/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