aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-05-04 11:14:19 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-05-04 11:14:19 +0000
commit6a81f64ab6bfda1d17de5b405b3b47f67697c3bc (patch)
tree9dd305c39879331daa3f40758f3cd62ae35865e9 /lib/Transforms/Utils
parent27742c1a76634312bc28cf37e89c83209576149f (diff)
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
Diffstat (limited to 'lib/Transforms/Utils')
-rw-r--r--lib/Transforms/Utils/CodeExtractor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/CodeExtractor.cpp b/lib/Transforms/Utils/CodeExtractor.cpp
index 3d08a5dffc..0178c336d9 100644
--- a/lib/Transforms/Utils/CodeExtractor.cpp
+++ b/lib/Transforms/Utils/CodeExtractor.cpp
@@ -78,7 +78,7 @@ buildExtractionBlockSet(ArrayRef<BasicBlock *> BBs) {
if (!isBlockValidForExtraction(**I)) {
Result.clear();
- break;
+ return Result;
}
}