[llvm-commits] [polly] r150577 - /polly/trunk/lib/CodeGeneration.cpp

Tobias Grosser grosser at fim.uni-passau.de
Wed Feb 15 01:58:53 PST 2012


Author: grosser
Date: Wed Feb 15 03:58:53 2012
New Revision: 150577

URL: http://llvm.org/viewvc/llvm-project?rev=150577&view=rev
Log:
CodeGen: Update the BasicBlock pointer correctly when creating 'polly.split...'

Problem reported by: Ryan Taylor <ryta1203 at gmail.com>

Modified:
    polly/trunk/lib/CodeGeneration.cpp

Modified: polly/trunk/lib/CodeGeneration.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGeneration.cpp?rev=150577&r1=150576&r2=150577&view=diff
==============================================================================
--- polly/trunk/lib/CodeGeneration.cpp (original)
+++ polly/trunk/lib/CodeGeneration.cpp Wed Feb 15 03:58:53 2012
@@ -1613,7 +1613,7 @@
 
       // Update ScopInfo.
       for (Scop::iterator SI = S->begin(), SE = S->end(); SI != SE; ++SI)
-        if ((*SI)->getBasicBlock() == newBlock) {
+        if ((*SI)->getBasicBlock() == OldBlock) {
           (*SI)->setBasicBlock(newBlock);
           break;
         }





More information about the llvm-commits mailing list