[DominatorTree] Simplify ChildrenGetter.
commite22de4e46d1dd1aacc3a7060d24bcbe89908ba6c
authorAlina Sbirlea <asbirlea@google.com>
Sat, 25 Jul 2020 01:36:18 +0000 (24 18:36 -0700)
committerAlina Sbirlea <asbirlea@google.com>
Tue, 28 Jul 2020 22:44:20 +0000 (28 15:44 -0700)
tree084988189006a23a14873e9de80399cfd82f60eb
parent0b161def6cacff1a63d3cf1a1efe95b550814d7a
[DominatorTree] Simplify ChildrenGetter.

Summary:
Simplify ChildrenGetter to a simple wrapper around a GraphDiff call.
GraphDiff already handles nullptr in children, so the special casing in
clang can also be removed.

Reviewers: kuhar, dblaikie

Subscribers: llvm-commits, cfe-commits

Tags: #clang, #llvm

Differential Revision: https://reviews.llvm.org/D84713
clang/include/clang/Analysis/Analyses/Dominators.h
llvm/include/llvm/Support/GenericDomTreeConstruction.h