diff options
-rw-r--r-- | llvm/include/llvm/Support/GenericDomTreeConstruction.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/include/llvm/Support/GenericDomTreeConstruction.h b/llvm/include/llvm/Support/GenericDomTreeConstruction.h index 96ea74a5c50..34c1fe6800a 100644 --- a/llvm/include/llvm/Support/GenericDomTreeConstruction.h +++ b/llvm/include/llvm/Support/GenericDomTreeConstruction.h @@ -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; } |