[llvm] r296500 - [LCG] Fix EXPENSIVE_CHECKS typo. NFC
Francis Visoiu Mistrih via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 28 10:34:56 PST 2017
Author: thegameg
Date: Tue Feb 28 12:34:55 2017
New Revision: 296500
URL: http://llvm.org/viewvc/llvm-project?rev=296500&view=rev
Log:
[LCG] Fix EXPENSIVE_CHECKS typo. NFC
Differential Revision: https://reviews.llvm.org/D30434
Modified:
llvm/trunk/lib/Analysis/LazyCallGraph.cpp
Modified: llvm/trunk/lib/Analysis/LazyCallGraph.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/LazyCallGraph.cpp?rev=296500&r1=296499&r2=296500&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/LazyCallGraph.cpp (original)
+++ llvm/trunk/lib/Analysis/LazyCallGraph.cpp Tue Feb 28 12:34:55 2017
@@ -817,7 +817,7 @@ void LazyCallGraph::RefSCC::switchOutgoi
assert(G->lookupRefSCC(SourceN) == this && "Source must be in this RefSCC.");
assert(G->lookupRefSCC(TargetN) != this &&
"Target must not be in this RefSCC.");
-#ifdef EXPENSIVE_CEHCKS
+#ifdef EXPENSIVE_CHECKS
assert(G->lookupRefSCC(TargetN)->isDescendantOf(*this) &&
"Target must be a descendant of the Source.");
#endif
@@ -839,7 +839,7 @@ void LazyCallGraph::RefSCC::switchOutgoi
assert(G->lookupRefSCC(SourceN) == this && "Source must be in this RefSCC.");
assert(G->lookupRefSCC(TargetN) != this &&
"Target must not be in this RefSCC.");
-#ifdef EXPENSIVE_CEHCKS
+#ifdef EXPENSIVE_CHECKS
assert(G->lookupRefSCC(TargetN)->isDescendantOf(*this) &&
"Target must be a descendant of the Source.");
#endif
@@ -876,7 +876,7 @@ void LazyCallGraph::RefSCC::insertOutgoi
RefSCC &TargetC = *G->lookupRefSCC(TargetN);
assert(&TargetC != this && "Target must not be in this RefSCC.");
-#ifdef EXPENSIVE_CEHCKS
+#ifdef EXPENSIVE_CHECKS
assert(TargetC.isDescendantOf(*this) &&
"Target must be a descendant of the Source.");
#endif
@@ -896,7 +896,7 @@ LazyCallGraph::RefSCC::insertIncomingRef
assert(G->lookupRefSCC(TargetN) == this && "Target must be in this RefSCC.");
RefSCC &SourceC = *G->lookupRefSCC(SourceN);
assert(&SourceC != this && "Source must not be in this RefSCC.");
-#ifdef EXPENSIVE_CEHCKS
+#ifdef EXPENSIVE_CHECKS
assert(SourceC.isDescendantOf(*this) &&
"Source must be a descendant of the Target.");
#endif
@@ -1449,7 +1449,7 @@ void LazyCallGraph::RefSCC::handleTrivia
return;
}
-#ifdef EXPENSIVE_CEHCKS
+#ifdef EXPENSIVE_CHECKS
assert(TargetRC.isDescendantOf(*this) &&
"Target must be a descendant of the Source.");
#endif
More information about the llvm-commits
mailing list