forked from OSchip/llvm-project
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:
parent
3636554b63
commit
0a570552d1
|
@ -78,7 +78,7 @@ buildExtractionBlockSet(ArrayRef<BasicBlock *> BBs) {
|
|||
|
||||
if (!isBlockValidForExtraction(**I)) {
|
||||
Result.clear();
|
||||
break;
|
||||
return Result;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue