trivially infinite.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146197
91177308-0d34-0410-b5e6-
96231b3b80d8
BasicBlock *BB, DominatorTree *DT) {
for (pred_iterator I = pred_begin(BB), E = pred_end(BB); I != E; ++I) {
BasicBlock *Pred = *I;
+ if (Pred == BB) continue;
TerminatorInst *PredTI = Pred->getTerminator();
if (PredTI->getNumSuccessors() != 1)
continue;
I != E; ++I)
DeadStackObjects.erase(*I);
}
-
tail call void @free(i8* %alloc1) nounwind
ret void
}
+
+; CHECK: @test5
+define void @test5() {
+ br label %bb
+
+bb:
+ tail call void @free(i8* undef) nounwind
+ br label %bb
+}
+