Skip to content

Commit 5d1c99c

Browse files
committed
[AddressLowering] CallArgRewriter takes ApplySite.
Rather than being able to handle only to FullApplySites, it now handles PartialApplyInsts as well.
1 parent 78a8409 commit 5d1c99c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/SILOptimizer/Mandatory/AddressLowering.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1714,13 +1714,13 @@ namespace {
17141714
/// object arguments with address-type arguments.
17151715
class CallArgRewriter {
17161716
AddressLoweringState &pass;
1717-
FullApplySite apply;
1717+
ApplySite apply;
17181718
SILLocation callLoc;
17191719
SILBuilder argBuilder;
17201720
AddressMaterialization addrMat;
17211721

17221722
public:
1723-
CallArgRewriter(FullApplySite apply, AddressLoweringState &pass)
1723+
CallArgRewriter(ApplySite apply, AddressLoweringState &pass)
17241724
: pass(pass), apply(apply), callLoc(apply.getLoc()),
17251725
argBuilder(pass.getBuilder(apply.getInstruction()->getIterator())),
17261726
addrMat(pass, argBuilder) {}

0 commit comments

Comments
 (0)