diff options
author | Florian Hahn <florian.hahn@arm.com> | 2018-03-06 13:12:32 +0000 |
---|---|---|
committer | Florian Hahn <florian.hahn@arm.com> | 2018-03-06 13:12:32 +0000 |
commit | f0a25f7253745d8aa3c3692e53110fc20a569bd0 (patch) | |
tree | 90d761243c00062aff7cf00031795f800b6cc06f /llvm/lib/CodeGen/LiveDebugVariables.cpp | |
parent | 33caf899704c9a300be44e97c70f1c8a9e679072 (diff) | |
download | llvm-f0a25f7253745d8aa3c3692e53110fc20a569bd0.zip llvm-f0a25f7253745d8aa3c3692e53110fc20a569bd0.tar.gz llvm-f0a25f7253745d8aa3c3692e53110fc20a569bd0.tar.bz2 |
[CloneFunction] Support BB == PredBB in DuplicateInstructionsInSplit.
In case PredBB == BB and StopAt == BB's terminator, StopAt != &*BI will
fail, because BB's terminator instruction gets replaced.
By using BB.getTerminator() we get the current terminator which we can use
to compare.
Reviewers: sanjoy, anna, reames
Reviewed By: anna
Differential Revision: https://reviews.llvm.org/D43822
llvm-svn: 326779
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
0 files changed, 0 insertions, 0 deletions