aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-01-18 20:53:04 +0000
committerChris Lattner <sabre@nondot.org>2011-01-18 20:53:04 +0000
commit435b4d2eba723e9513453f20885244ad1d16e0d4 (patch)
tree7eab8b049d45014fefeccd382ce99a36a41f204f /lib/Transforms
parenta461d4222877f43588da38c466145f38dd74e229 (diff)
downloadexternal_llvm-435b4d2eba723e9513453f20885244ad1d16e0d4.zip
external_llvm-435b4d2eba723e9513453f20885244ad1d16e0d4.tar.gz
external_llvm-435b4d2eba723e9513453f20885244ad1d16e0d4.tar.bz2
fix rdar://8878965, a regression I introduced with the recent
llvm.objectsize changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123771 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/Scalar/CodeGenPrepare.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/CodeGenPrepare.cpp b/lib/Transforms/Scalar/CodeGenPrepare.cpp
index 72c8bf3..9536939 100644
--- a/lib/Transforms/Scalar/CodeGenPrepare.cpp
+++ b/lib/Transforms/Scalar/CodeGenPrepare.cpp
@@ -644,8 +644,10 @@ bool CodeGenPrepare::OptimizeCallInst(CallInst *CI) {
// If the iterator instruction was recursively deleted, start over at the
// start of the block.
- if (IterHandle != CurInstIterator)
+ if (IterHandle != CurInstIterator) {
CurInstIterator = BB->begin();
+ SunkAddrs.clear();
+ }
return true;
}