[BranchRelaxation] Fix warning on unused variable. NFC.

This commit is contained in:
Michael Liao 2021-11-05 10:47:10 -04:00
parent 08056e1888
commit af2ae2cf42
1 changed files with 1 additions and 1 deletions

View File

@ -485,7 +485,7 @@ bool BranchRelaxation::fixupUnconditionalBranch(MachineInstr &MI) {
MachineBasicBlock *PrevBB = &*std::prev(DestBB->getIterator()); MachineBasicBlock *PrevBB = &*std::prev(DestBB->getIterator());
if (auto *FT = PrevBB->getFallThrough()) { if (auto *FT = PrevBB->getFallThrough()) {
assert(FT == DestBB); assert(FT == DestBB);
TII->insertUnconditionalBranch(*PrevBB, DestBB, DebugLoc()); TII->insertUnconditionalBranch(*PrevBB, FT, DebugLoc());
// Recalculate the block size. // Recalculate the block size.
BlockInfo[PrevBB->getNumber()].Size = computeBlockSize(*PrevBB); BlockInfo[PrevBB->getNumber()].Size = computeBlockSize(*PrevBB);
} }