[llvm-commits] CVS: llvm/lib/Analysis/PostDominators.cpp
Chris Lattner
clattner at apple.com
Sun Apr 15 15:13:02 PDT 2007
> -unsigned ImmediatePostDominators::DFSPass(BasicBlock *V, InfoRec
> &VInfo,
> +unsigned PostDominatorTree::DFSPass(BasicBlock *V, InfoRec &VInfo,
> unsigned N) {
Plz fix the indentation of the 'unsigned N'.
>
> // If we are unreachable, we may not have an immediate dominator.
> - if (!IDom)
> + if (!node)
> + return 0;
> + else if (!node->getIDom())
Tab
> - if (ID.get(BB))
> - IDomNode = getNodeForBlock(ID.get(BB));
> + PostDominatorTree::Node *node = DT.getNode(BB);
tab
-Chris
More information about the llvm-commits
mailing list