diff options
| author | Chris Lattner <sabre@nondot.org> | 2004-10-12 01:02:29 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2004-10-12 01:02:29 +0000 | 
| commit | 7cabf6f87a29f116bf90cadd101c0fda0b31c4ff (patch) | |
| tree | eff1109e53681005f0e1061874c41cde5848cfca /llvm/lib/Transforms | |
| parent | 9776f7259bf66ca7184d80f9ec09117ea2b0fcd5 (diff) | |
| download | bcm5719-llvm-7cabf6f87a29f116bf90cadd101c0fda0b31c4ff.tar.gz bcm5719-llvm-7cabf6f87a29f116bf90cadd101c0fda0b31c4ff.zip | |
Fix a REALLY obscure bug in my previous checkin, which was splicing the END
marker from one ilist into the middle of another basic block!
llvm-svn: 16925
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/IndVarSimplify.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp index 3398b376abf..00249807cac 100644 --- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -138,7 +138,7 @@ namespace {                    // Splice the cast immediately after the operand in question.                    BasicBlock::InstListType &InstList =                      I->getParent()->getInstList(); -                  InstList.splice(It, InstList, CI); +                  InstList.splice(It, CI->getParent()->getInstList(), CI);                  }                  return CI;                } | 

