[llvm-commits] [llvm] r156166 - /llvm/trunk/lib/Transforms/Utils/CodeExtractor.cpp
Chandler Carruth
chandlerc at gmail.com
Fri May 4 04:14:19 PDT 2012
Author: chandlerc
Date: Fri May 4 06:14:19 2012
New Revision: 156166
URL: http://llvm.org/viewvc/llvm-project?rev=156166&view=rev
Log:
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.
Modified:
llvm/trunk/lib/Transforms/Utils/CodeExtractor.cpp
Modified: llvm/trunk/lib/Transforms/Utils/CodeExtractor.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/CodeExtractor.cpp?rev=156166&r1=156165&r2=156166&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/CodeExtractor.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/CodeExtractor.cpp Fri May 4 06:14:19 2012
@@ -78,7 +78,7 @@
if (!isBlockValidForExtraction(**I)) {
Result.clear();
- break;
+ return Result;
}
}
More information about the llvm-commits
mailing list