mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Add AssertingVH which makes PR7647 break consistently.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108401 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4baa8ebc93
commit
3ed60a2a22
@ -443,7 +443,9 @@ 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();
|
||||
|
Loading…
Reference in New Issue
Block a user