Revert r108401; it breaks bootstrap :(
authorEli Friedman <eli.friedman@gmail.com>
Thu, 15 Jul 2010 05:09:31 +0000 (05:09 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Thu, 15 Jul 2010 05:09:31 +0000 (05:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108407 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/InstructionSimplify.cpp

index 0efe183a998b62cb10c01809d35fddcf50e9a313..dbefc2dedb2b41a5a605c4cfff9057c48536a754 100644 (file)
@@ -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();