[llvm] r294235 - [PM/LCG] Fix the no-asserts build after r294227. Sorry for the noise.

Chandler Carruth via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 6 12:59:07 PST 2017


Author: chandlerc
Date: Mon Feb  6 14:59:07 2017
New Revision: 294235

URL: http://llvm.org/viewvc/llvm-project?rev=294235&view=rev
Log:
[PM/LCG] Fix the no-asserts build after r294227. Sorry for the noise.

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=294235&r1=294234&r2=294235&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/LazyCallGraph.cpp (original)
+++ llvm/trunk/lib/Analysis/LazyCallGraph.cpp Mon Feb  6 14:59:07 2017
@@ -1811,7 +1811,9 @@ void LazyCallGraph::buildRefSCCs() {
         (void)Inserted;
         assert(Inserted && "Cannot already have this RefSCC in the index map!");
         PostOrderRefSCCs.push_back(NewRC);
+#ifndef NDEBUG
         NewRC->verify();
+#endif
       });
 }
 




More information about the llvm-commits mailing list