[llvm] r314805 - [Dominators] Don't use default parameter in lambda

Jakub Kuderski via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 3 07:51:31 PDT 2017


Author: kuhar
Date: Tue Oct  3 07:51:31 2017
New Revision: 314805

URL: http://llvm.org/viewvc/llvm-project?rev=314805&view=rev
Log:
[Dominators] Don't use default parameter in lambda

... to make GCC buildbots happy.

Modified:
    llvm/trunk/include/llvm/Support/GenericDomTreeConstruction.h

Modified: llvm/trunk/include/llvm/Support/GenericDomTreeConstruction.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/GenericDomTreeConstruction.h?rev=314805&r1=314804&r2=314805&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/GenericDomTreeConstruction.h (original)
+++ llvm/trunk/include/llvm/Support/GenericDomTreeConstruction.h Tue Oct  3 07:51:31 2017
@@ -1400,7 +1400,7 @@ struct SemiNCAInfo {
                 });
 
       auto PrintChildrenError = [Node, &Children, PrintNodeAndDFSNums](
-          const TreeNodePtr FirstCh, const TreeNodePtr SecondCh = nullptr) {
+          const TreeNodePtr FirstCh, const TreeNodePtr SecondCh) {
         assert(FirstCh);
 
         errs() << "Incorrect DFS numbers for:\n\tParent ";
@@ -1425,12 +1425,12 @@ struct SemiNCAInfo {
       };
 
       if (Children.front()->getDFSNumIn() != Node->getDFSNumIn() + 1) {
-        PrintChildrenError(Children.front());
+        PrintChildrenError(Children.front(), nullptr);
         return false;
       }
 
       if (Children.back()->getDFSNumOut() + 1 != Node->getDFSNumOut()) {
-        PrintChildrenError(Children.back());
+        PrintChildrenError(Children.back(), nullptr);
         return false;
       }
 




More information about the llvm-commits mailing list