Skip to content

Commit 24c4c61

Browse files
committed
[AddressLowering] Rewrite partial_apply uses.
Use the CallArgRewriter to rewrite uses by partial_apply insts just as uses by apply insts, etc., are rewritten.
1 parent 5d1c99c commit 24c4c61

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/SILOptimizer/Mandatory/AddressLowering.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2599,6 +2599,10 @@ class UseRewriter : SILInstructionVisitor<UseRewriter> {
25992599
CallArgRewriter(applyInst, pass).rewriteIndirectArgument(use);
26002600
}
26012601

2602+
void visitPartialApplyInst(PartialApplyInst *pai) {
2603+
CallArgRewriter(pai, pass).rewriteIndirectArgument(use);
2604+
}
2605+
26022606
void visitBeginApplyInst(BeginApplyInst *bai) {
26032607
CallArgRewriter(bai, pass).rewriteIndirectArgument(use);
26042608
}

0 commit comments

Comments
 (0)