Skip to content

Commit 1dc4b47

Browse files
committed
Fix thinko
1 parent 0696e31 commit 1dc4b47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILOptimizer/Mandatory/MoveKillsCopyableAddressesChecker.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ bool ConsumingClosureArgDataflowState::handleSingleBlockCase(
697697

698698
// If we see a destroy, then we know we are upwards consume... stash it so
699699
// that we can destroy it
700-
if (auto *dvi = dyn_cast<DestroyValueInst>(&inst)) {
700+
if (auto *dvi = dyn_cast<DestroyAddrInst>(&inst)) {
701701
if (useState.destroyToIndexMap.count(dvi)) {
702702
LLVM_DEBUG(llvm::dbgs()
703703
<< "ClosureArgDataflow: Found Consume: " << *dvi);

0 commit comments

Comments
 (0)