Fix a goof with my previous commit by completely returning when we

detect an in-eligible block rather than just breaking out of the loop.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156166 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chandler Carruth 2012-05-04 11:14:19 +00:00
parent 27742c1a76
commit 6a81f64ab6

View File

@ -78,7 +78,7 @@ buildExtractionBlockSet(ArrayRef<BasicBlock *> BBs) {
if (!isBlockValidForExtraction(**I)) {
Result.clear();
break;
return Result;
}
}