mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
revise debug output to avoid dangling pointer
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162256 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5379904807
commit
787ed03ec1
@ -220,6 +220,7 @@ bool CodeGenPrepare::EliminateFallThrough(Function &F) {
|
||||
BranchInst *Term = dyn_cast<BranchInst>(SinglePred->getTerminator());
|
||||
if (Term && !Term->isConditional()) {
|
||||
Changed = true;
|
||||
DEBUG(dbgs() << "To merge:\n"<< *SinglePred << "\n\n\n");
|
||||
// Remember if SinglePred was the entry block of the function.
|
||||
// If so, we will need to move BB back to the entry position.
|
||||
bool isEntry = SinglePred == &SinglePred->getParent()->getEntryBlock();
|
||||
@ -230,7 +231,6 @@ bool CodeGenPrepare::EliminateFallThrough(Function &F) {
|
||||
|
||||
// We have erased a block. Update the iterator.
|
||||
I = BB;
|
||||
DEBUG(dbgs() << "Merged:\n"<< *SinglePred << "\n\n\n");
|
||||
}
|
||||
}
|
||||
return Changed;
|
||||
|
Loading…
Reference in New Issue
Block a user