mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:50:30 +00:00
TailDuplicator: Fix crash after r278974
Some inputs would after r278974 without this fix (see http://lab.llvm.org:8080/green/job/clang-stage2-cmake-RgSan_build/2733/console for an example) llvm-svn: 279022
This commit is contained in:
parent
cb1ea8721b
commit
d84c46a824
@ -673,7 +673,7 @@ bool TailDuplicator::duplicateSimpleBB(
|
|||||||
<< "From simple Succ: " << *TailBB);
|
<< "From simple Succ: " << *TailBB);
|
||||||
|
|
||||||
MachineBasicBlock *NewTarget = *TailBB->succ_begin();
|
MachineBasicBlock *NewTarget = *TailBB->succ_begin();
|
||||||
MachineBasicBlock *NextBB = &*std::next(PredBB->getIterator());
|
MachineBasicBlock *NextBB = PredBB->getNextNode();
|
||||||
|
|
||||||
// Make PredFBB explicit.
|
// Make PredFBB explicit.
|
||||||
if (PredCond.empty())
|
if (PredCond.empty())
|
||||||
|
Loading…
Reference in New Issue
Block a user