kuhar accepted this revision.
kuhar added a comment.
This revision is now accepted and ready to land.

Thanks, I think this is a much better solution than directly hacking on 
DomTreeBuilder.

Note that every time you ask DomTree about a `nullptr` CFG node, it understands 
it as a request for a virtual root. While now this should crash on forward 
dominators, you will get an actual tree node for a nullptr in postdominators. 
In the future, it may happen that forward dominators will also have a virtual 
root (for more efficient updates) and the users of clang CFG and dominators 
should be aware that not every CFG node (i.e., an unreachable successor) has a 
corresponding DomTreeNode.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D62507/new/

https://reviews.llvm.org/D62507



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to