Skip to content

Commit 3ab207c

Browse files
committed
[copy-propagation] Finish plumbing through InstModCallbacks into one deletion utility that I missed.
1 parent 4c9cd62 commit 3ab207c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/SILOptimizer/Utils/CanonicalOSSALifetime.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,8 @@ void CanonicalizeOSSALifetime::rewriteCopies() {
11041104
// Remove the leftover copy_value and destroy_value instructions.
11051105
if (!instsToDelete.empty()) {
11061106
recursivelyDeleteTriviallyDeadInstructions(instsToDelete.takeVector(),
1107-
/*force=*/true);
1107+
/*force=*/true,
1108+
instModCallbacks);
11081109
setChanged();
11091110
}
11101111
}

0 commit comments

Comments
 (0)