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.

llvm-svn: 156166
This commit is contained in:
Chandler Carruth 2012-05-04 11:14:19 +00:00
parent 3636554b63
commit 0a570552d1
1 changed files with 1 additions and 1 deletions

View File

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