From: Chandler Carruth Date: Fri, 4 May 2012 11:17:06 +0000 (+0000) Subject: Rather than trying to gracefully handle input sequences with repeated X-Git-Tag: android-x86-6.0-r1~201^2~1656 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=50955031b81ef1abd54fecd587bee7959f7fa19d;p=android-x86%2Fexternal-llvm.git 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156167 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Utils/CodeExtractor.cpp b/lib/Transforms/Utils/CodeExtractor.cpp index 0178c336d9e..4d82857c1b2 100644 --- a/lib/Transforms/Utils/CodeExtractor.cpp +++ b/lib/Transforms/Utils/CodeExtractor.cpp @@ -74,7 +74,7 @@ buildExtractionBlockSet(ArrayRef BBs) { for (ArrayRef::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();