Skip to content

Commit 765af1c

Browse files
committed
Remove debug code.
1 parent ef92135 commit 765af1c

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

llvm/lib/Transforms/Utils/CodeExtractor.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -810,11 +810,7 @@ void CodeExtractor::severSplitPHINodesOfExits() {
810810
}
811811

812812
void CodeExtractor::splitReturnBlocks() {
813-
for (BasicBlock *Block : Blocks) {
814-
if (!Block->getTerminator()) {
815-
errs() << "====== No terminator in block: " << Block->getName()
816-
<< "======\n";
817-
}
813+
for (BasicBlock *Block : Blocks)
818814
if (ReturnInst *RI = dyn_cast<ReturnInst>(Block->getTerminator())) {
819815
BasicBlock *New =
820816
Block->splitBasicBlock(RI->getIterator(), Block->getName() + ".ret");
@@ -831,7 +827,6 @@ void CodeExtractor::splitReturnBlocks() {
831827
DT->changeImmediateDominator(I, NewNode);
832828
}
833829
}
834-
}
835830
}
836831

837832
Function *CodeExtractor::constructFunctionDeclaration(

0 commit comments

Comments
 (0)