mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-17 00:57:54 +00:00
fit in 80 cols
llvm-svn: 111348
This commit is contained in:
parent
0a9bda3bde
commit
4c6e9192d1
@ -257,7 +257,7 @@ void llvm::RemoveSuccessor(TerminatorInst *TI, unsigned SuccNum) {
|
||||
case Instruction::Switch: // Should remove entry
|
||||
default:
|
||||
case Instruction::Ret: // Cannot happen, has no successors!
|
||||
llvm_unreachable("Unhandled terminator instruction type in RemoveSuccessor!");
|
||||
llvm_unreachable("Unhandled terminator inst type in RemoveSuccessor!");
|
||||
}
|
||||
|
||||
if (NewTI) // If it's a different instruction, replace.
|
||||
@ -411,7 +411,8 @@ BasicBlock *llvm::SplitBlockPredecessors(BasicBlock *BB,
|
||||
DominatorTree *DT = P ? P->getAnalysisIfAvailable<DominatorTree>() : 0;
|
||||
if (DT)
|
||||
DT->splitBlock(NewBB);
|
||||
if (DominanceFrontier *DF = P ? P->getAnalysisIfAvailable<DominanceFrontier>():0)
|
||||
if (DominanceFrontier *DF =
|
||||
P ? P->getAnalysisIfAvailable<DominanceFrontier>() : 0)
|
||||
DF->splitBlock(NewBB);
|
||||
|
||||
// Insert a new PHI node into NewBB for every PHI node in BB and that new PHI
|
||||
|
Loading…
x
Reference in New Issue
Block a user