Skip to content

Commit 5f081b1

Browse files
committed
[Dominators] Don't use default parameter in lambda
... to make GCC buildbots happy. llvm-svn: 314805
1 parent 0d5c792 commit 5f081b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/include/llvm/Support/GenericDomTreeConstruction.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1400,7 +1400,7 @@ struct SemiNCAInfo {
14001400
});
14011401

14021402
auto PrintChildrenError = [Node, &Children, PrintNodeAndDFSNums](
1403-
const TreeNodePtr FirstCh, const TreeNodePtr SecondCh = nullptr) {
1403+
const TreeNodePtr FirstCh, const TreeNodePtr SecondCh) {
14041404
assert(FirstCh);
14051405

14061406
errs() << "Incorrect DFS numbers for:\n\tParent ";
@@ -1425,12 +1425,12 @@ struct SemiNCAInfo {
14251425
};
14261426

14271427
if (Children.front()->getDFSNumIn() != Node->getDFSNumIn() + 1) {
1428-
PrintChildrenError(Children.front());
1428+
PrintChildrenError(Children.front(), nullptr);
14291429
return false;
14301430
}
14311431

14321432
if (Children.back()->getDFSNumOut() + 1 != Node->getDFSNumOut()) {
1433-
PrintChildrenError(Children.back());
1433+
PrintChildrenError(Children.back(), nullptr);
14341434
return false;
14351435
}
14361436

0 commit comments

Comments
 (0)