git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122690
91177308-0d34-0410-b5e6-
96231b3b80d8
}
}
- typename GraphT::NodeType* WParent = DT.Vertex[WInfo.Parent];
-
// If V is a non-root vertex and sdom(V) = parent(V), then idom(V) is
// necessarily parent(V). In this case, set idom(V) here and avoid placing
// V into a bucket.
if (WInfo.Semi == WInfo.Parent) {
- DT.IDoms[W] = WParent;
+ DT.IDoms[W] = DT.Vertex[WInfo.Parent];
} else {
Buckets[i] = Buckets[WInfo.Semi];
Buckets[WInfo.Semi] = i;