llvm.org GIT mirror llvm / 4ade012
Add comment about a gotcha I ran across while touching this code. I haven't looked closely at exactly why the side effect is required, but this seems better than not mentioning it at all. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226030 91177308-0d34-0410-b5e6-96231b3b80d8 David Blaikie 5 years ago
1 changed file(s) with 1 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
259259 for (unsigned i = 2; i <= N; ++i) {
260260 typename GraphT::NodeType* W = DT.Vertex[i];
262 // Don't replace this with 'count', the insertion side effect is important
262263 if (DT.DomTreeNodes[W])
263264 continue; // Haven't calculated this node yet?