aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-objdump/llvm-objdump.cpp
diff options
context:
space:
mode:
authorDavid Stenberg <david.stenberg@ericsson.com>2020-09-09 10:59:41 +0200
committerDavid Stenberg <david.stenberg@ericsson.com>2020-09-09 13:36:03 +0200
commit48fc781438767bd8337facf2e232c695b0426fb4 (patch)
tree26a73e2e8e60b76d9570aaf605c0ab9cde9054e5 /llvm/tools/llvm-objdump/llvm-objdump.cpp
parent36c8621638d18c830efe2c6a2a6d0a0338b0f79d (diff)
downloadllvm-48fc781438767bd8337facf2e232c695b0426fb4.zip
llvm-48fc781438767bd8337facf2e232c695b0426fb4.tar.gz
llvm-48fc781438767bd8337facf2e232c695b0426fb4.tar.bz2
[UnifyFunctionExitNodes] Fix Modified status for unreachable blocks
If a function had at most one return block, the pass would return false regardless if an unified unreachable block was created. This patch fixes that by refactoring runOnFunction into two separate helper functions for handling the unreachable blocks respectively the return blocks, as suggested by @bjope in a review comment. This was caught using the check introduced by D80916. Reviewed By: serge-sans-paille Differential Revision: https://reviews.llvm.org/D85818
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions