CodeGen: Update the BasicBlock pointer correctly when creating 'polly.split...'

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

llvm-svn: 150577
This commit is contained in:
Tobias Grosser 2012-02-15 09:58:53 +00:00
parent cb47dfeb96
commit f12cea4257

View File

@ -1613,7 +1613,7 @@ class CodeGeneration : public ScopPass {
// 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;
}