commit | 435b4d2eba723e9513453f20885244ad1d16e0d4 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Tue Jan 18 20:53:04 2011 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Tue Jan 18 20:53:04 2011 +0000 |
tree | 7eab8b049d45014fefeccd382ce99a36a41f204f | |
parent | a461d4222877f43588da38c466145f38dd74e229 [diff] [blame] |
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
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 @@ // 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; }