diff options
author | Diego Novillo <dnovillo@google.com> | 2013-12-02 14:08:27 +0000 |
---|---|---|
committer | Diego Novillo <dnovillo@google.com> | 2013-12-02 14:08:27 +0000 |
commit | ee592429f1362d2d0a28c0a8c40dd3cfa125143e (patch) | |
tree | 190a5c7628dba02cf3d68a237761297768f7cdd3 /llvm/lib/Target | |
parent | c0378e72d1a04deb9b32c0ea9513d4f08d8fdba9 (diff) | |
download | bcm5719-llvm-ee592429f1362d2d0a28c0a8c40dd3cfa125143e.tar.gz bcm5719-llvm-ee592429f1362d2d0a28c0a8c40dd3cfa125143e.zip |
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.
llvm-svn: 196099
Diffstat (limited to 'llvm/lib/Target')
0 files changed, 0 insertions, 0 deletions