Closed
Description
The debug location of BBTerm
does not be propagated to the new branch instruction, though the new branch instruction replaces BBTerm
.
BranchInst::Create(BBTerm->getSuccessor(BestSucc), BBTerm->getIterator());
++NumFolds;
BBTerm->eraseFromParent();
The debug location of Term
does not be propagated to the new branch instruction, though the new branch instruction replaces Term
.
Instruction *Term = BB->getTerminator();
BranchInst::Create(OnlyDest, Term->getIterator());
++NumFolds;
Term->eraseFromParent();