diff options
Diffstat (limited to 'llvm/lib/Transforms/Scalar/IndVarSimplify.cpp')
| -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;                } | 

