summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMFastISel.cpp
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@google.com>2013-12-02 14:08:27 +0000
committerDiego Novillo <dnovillo@google.com>2013-12-02 14:08:27 +0000
commitee592429f1362d2d0a28c0a8c40dd3cfa125143e (patch)
tree190a5c7628dba02cf3d68a237761297768f7cdd3 /llvm/lib/Target/ARM/ARMFastISel.cpp
parentc0378e72d1a04deb9b32c0ea9513d4f08d8fdba9 (diff)
downloadbcm5719-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/ARM/ARMFastISel.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud