mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-10 19:34:29 +00:00
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:
parent
cb47dfeb96
commit
f12cea4257
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user