Skip to content

Commit 3625a68

Browse files
committed
Fix an infinite loop in the SIL verifier.
This was an obvious thinko that must not have been hit yet in practice.
1 parent c1a9f6f commit 3625a68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SIL/Utils/OwnershipUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ bool InteriorPointerOperand::findTransitiveUsesForAddress(
768768
}
769769

770770
// If we are the value use, look through it.
771-
llvm::copy(mdi->getValue()->getUses(), std::back_inserter(worklist));
771+
llvm::copy(mdi->getUses(), std::back_inserter(worklist));
772772
continue;
773773
}
774774

0 commit comments

Comments
 (0)