Diego Novillo
97add46aee
Fix dominator descendants for unreachable blocks.
...
When a block is unreachable, asking its dom tree descendants should
return the empty set. However, the computation of the descendants
was causing a segmentation fault because the dom tree node we get
from the basic block is initially NULL.
Fixed by adding a test for a valid dom tree node before we iterate.
The patch also adds some unit tests to the existing dom tree tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196099 91177308-0d34-0410-b5e6-96231b3b80d8
2013-12-02 14:08:27 +00:00
..
2013-05-28 08:17:48 +00:00
2013-03-18 23:33:44 +00:00
2013-08-20 23:04:15 +00:00
2013-11-14 02:27:46 +00:00
2013-05-24 12:26:52 +00:00
2013-12-02 12:35:56 +00:00
2013-01-10 00:45:19 +00:00
2013-01-11 17:28:14 +00:00
2013-03-10 00:34:01 +00:00
2013-08-20 23:04:15 +00:00
2013-11-12 18:06:09 +00:00
2013-01-21 13:04:33 +00:00
2013-05-17 21:43:39 +00:00
2013-11-12 22:47:20 +00:00
2011-12-20 02:50:00 +00:00
2012-12-03 17:02:12 +00:00
2013-12-02 14:08:27 +00:00
2013-11-26 03:43:52 +00:00
2013-06-06 23:34:11 +00:00
2013-08-06 00:16:21 +00:00
2013-01-10 00:45:19 +00:00
2013-03-05 22:05:16 +00:00
2013-01-10 00:45:19 +00:00
2013-03-06 00:04:32 +00:00
2012-10-08 16:38:25 +00:00
2013-01-10 00:45:19 +00:00
2012-09-27 10:14:43 +00:00
2013-01-02 11:36:10 +00:00
2013-11-22 05:00:48 +00:00
2013-10-26 03:08:02 +00:00
2013-02-09 13:29:10 +00:00
2013-11-09 12:26:54 +00:00
2013-10-24 09:17:24 +00:00
2013-03-06 17:48:48 +00:00
2013-11-12 22:47:20 +00:00
2013-01-02 11:36:10 +00:00
2013-11-26 20:11:12 +00:00
2013-01-02 11:36:10 +00:00
2013-04-10 06:54:49 +00:00
2013-01-10 00:45:19 +00:00
2013-11-09 12:26:54 +00:00
2013-11-16 16:25:47 +00:00
2013-10-25 21:35:56 +00:00
2013-11-12 22:47:20 +00:00
2013-01-10 00:45:19 +00:00
2013-01-10 00:45:19 +00:00
2013-10-22 15:18:03 +00:00
2013-01-10 00:45:19 +00:00
2013-09-24 16:37:51 +00:00