diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2010-07-15 05:09:31 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2010-07-15 05:09:31 +0000 |
commit | e2f93131fb78cf5650db9ca78b4aec3cc45f00be (patch) | |
tree | 8b0c9c1b14ed2c9ecd8026746e93aa36fa7750b3 | |
parent | 3ed60a2a2253fd519a2b2e48cacce10856198b62 (diff) | |
download | external_llvm-e2f93131fb78cf5650db9ca78b4aec3cc45f00be.zip external_llvm-e2f93131fb78cf5650db9ca78b4aec3cc45f00be.tar.gz external_llvm-e2f93131fb78cf5650db9ca78b4aec3cc45f00be.tar.bz2 |
Revert r108401; it breaks bootstrap :(
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108407 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Analysis/InstructionSimplify.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Analysis/InstructionSimplify.cpp b/lib/Analysis/InstructionSimplify.cpp index 0efe183..dbefc2d 100644 --- a/lib/Analysis/InstructionSimplify.cpp +++ b/lib/Analysis/InstructionSimplify.cpp @@ -443,9 +443,7 @@ void llvm::ReplaceAndSimplifyAllUses(Instruction *From, Value *To, // FromHandle - This keeps a weakvh on the from value so that we can know if // it gets deleted out from under us in a recursive simplification. WeakVH FromHandle(From); - // Double-check that To isn't deleted. - AssertingVH<> CheckedTo = To; - + while (!From->use_empty()) { // Update the instruction to use the new value. Use &U = From->use_begin().getUse(); |