File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
llvm/lib/Transforms/Utils Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -810,11 +810,7 @@ void CodeExtractor::severSplitPHINodesOfExits() {
810
810
}
811
811
812
812
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)
818
814
if (ReturnInst *RI = dyn_cast<ReturnInst>(Block->getTerminator ())) {
819
815
BasicBlock *New =
820
816
Block->splitBasicBlock (RI->getIterator (), Block->getName () + " .ret" );
@@ -831,7 +827,6 @@ void CodeExtractor::splitReturnBlocks() {
831
827
DT->changeImmediateDominator (I, NewNode);
832
828
}
833
829
}
834
- }
835
830
}
836
831
837
832
Function *CodeExtractor::constructFunctionDeclaration (
You can’t perform that action at this time.
0 commit comments