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 | 989cbd58fb769e920fbf15b6a0fe0888aed553c9 (patch) | |
tree | 5b4d11decda7a8435a47a1fe0ceaf370939f3a41 | |
parent | a4b9c7841f94b6a3a2ba6c562b5dc4f4de02c637 (diff) | |
download | external_llvm-989cbd58fb769e920fbf15b6a0fe0888aed553c9.zip external_llvm-989cbd58fb769e920fbf15b6a0fe0888aed553c9.tar.gz external_llvm-989cbd58fb769e920fbf15b6a0fe0888aed553c9.tar.bz2 |
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!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16925 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/Scalar/IndVarSimplify.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index 3398b37..0024980 100644 --- a/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/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; } |