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
This commit is contained in:
Chandler Carruth 2012-05-04 11:17:06 +00:00
parent 0a570552d1
commit 44e13911bc
1 changed files with 1 additions and 1 deletions

View File

@ -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();