projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef42fd4
)
[LCG] Remove yet another variable only used inside of asserts.
author
Chandler Carruth
<chandlerc@gmail.com>
Sat, 5 Aug 2017 08:33:16 +0000
(08:33 +0000)
committer
Chandler Carruth
<chandlerc@gmail.com>
Sat, 5 Aug 2017 08:33:16 +0000
(08:33 +0000)
llvm-svn: 310174
llvm/lib/Analysis/LazyCallGraph.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Analysis/LazyCallGraph.cpp
b/llvm/lib/Analysis/LazyCallGraph.cpp
index
a1cb447
..
da09426
100644
(file)
--- 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