summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-12-11 21:47:36 +0000
committerBill Wendling <isanbard@gmail.com>2009-12-11 21:47:36 +0000
commitb87b9925bed5bc185a216806b80988c8f203ff8e (patch)
tree1783e636404666dd13535b2b4584f70c439e596f /clang/lib/Driver/Tools.cpp
parentb314bd688a69285e4186f78ee613ec4267426a7a (diff)
downloadbcm5719-llvm-b87b9925bed5bc185a216806b80988c8f203ff8e.tar.gz
bcm5719-llvm-b87b9925bed5bc185a216806b80988c8f203ff8e.zip
Don't try to move a MBB into the fall-through position if it's a landing pad or
branches only to a landing pad. Without this check, the compiler would go into an infinite loop because the branch to a landing pad is an "abnormal" edge which wasn't being taken into account. This is the meat of that fix: if (!PrevBB.canFallThrough() && !MBB->BranchesToLandingPad(MBB)) { The other stuff is simplification of the "branches to a landing pad" code. llvm-svn: 91161
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud