summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-05-04 11:17:06 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-05-04 11:17:06 +0000
commit44e13911bc4ea87db8af7cc2fde3245367ceb7ed (patch)
treeefa1fc2bff6f1c67494646b08a78ee3963f5c676
parent0a570552d1fb1cc2d6bcf659f0db8659f718be6e (diff)
downloadbcm5719-llvm-44e13911bc4ea87db8af7cc2fde3245367ceb7ed.tar.gz
bcm5719-llvm-44e13911bc4ea87db8af7cc2fde3245367ceb7ed.zip
Rather than trying to gracefully handle input sequences with repeated
blocks, assert that this doesn't happen. We don't want to bother trying to support this call pattern as it isn't necessary. llvm-svn: 156167
-rw-r--r--llvm/lib/Transforms/Utils/CodeExtractor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/CodeExtractor.cpp b/llvm/lib/Transforms/Utils/CodeExtractor.cpp
index 0178c336d9e..4d82857c1b2 100644
--- a/llvm/lib/Transforms/Utils/CodeExtractor.cpp
+++ b/llvm/lib/Transforms/Utils/CodeExtractor.cpp
@@ -74,7 +74,7 @@ buildExtractionBlockSet(ArrayRef<BasicBlock *> BBs) {
for (ArrayRef<BasicBlock *>::iterator I = BBs.begin(), E = BBs.end();
I != E; ++I) {
if (!Result.insert(*I))
- continue;
+ llvm_unreachable("Repeated basic blocks in extraction input");
if (!isBlockValidForExtraction(**I)) {
Result.clear();
OpenPOWER on IntegriCloud