Skip to content

Commit 3cbf374

Browse files
committed
SILBridging: - unused createDeallocPackMetadata
This was added while implementing PackSpecialization, but went unused, so we have removed it to prevent the next person who needs it from assuming it works.
1 parent 7a5c18c commit 3cbf374

File tree

3 files changed

+0
-11
lines changed

3 files changed

+0
-11
lines changed

SwiftCompilerSources/Sources/SIL/Builder.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -256,12 +256,6 @@ public struct Builder {
256256
return notifyNew(dr.getAs(DeallocPackInst.self))
257257
}
258258

259-
@discardableResult
260-
public func createDeallocPackMetadata(_ operand: Value) -> DeallocPackMetadataInst {
261-
let dr = bridged.createDeallocPackMetadata(operand.bridged)
262-
return notifyNew(dr.getAs(DeallocPackMetadataInst.self))
263-
}
264-
265259
@discardableResult
266260
public func createDeallocStackRef(_ operand: Value) -> DeallocStackRefInst {
267261
let dr = bridged.createDeallocStackRef(operand.bridged)

include/swift/SIL/SILBridging.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1247,7 +1247,6 @@ struct BridgedBuilder{
12471247
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedInstruction createDeallocStack(BridgedValue operand) const;
12481248
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedInstruction createDeallocStackRef(BridgedValue operand) const;
12491249
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedInstruction createDeallocPack(BridgedValue operand) const;
1250-
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedInstruction createDeallocPackMetadata(BridgedValue operand) const;
12511250
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedInstruction createAddressToPointer(BridgedValue address,
12521251
BridgedType pointerTy,
12531252
bool needsStackProtection) const;

include/swift/SIL/SILBridgingImpl.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2385,10 +2385,6 @@ BridgedInstruction BridgedBuilder::createDeallocPack(BridgedValue operand) const
23852385
return {unbridged().createDeallocPack(regularLoc(), operand.getSILValue())};
23862386
}
23872387

2388-
BridgedInstruction BridgedBuilder::createDeallocPackMetadata(BridgedValue operand) const {
2389-
return {unbridged().createDeallocPackMetadata(regularLoc(), operand.getSILValue())};
2390-
}
2391-
23922388
BridgedInstruction BridgedBuilder::createAddressToPointer(BridgedValue address, BridgedType pointerTy,
23932389
bool needsStackProtection) const {
23942390
return {unbridged().createAddressToPointer(regularLoc(), address.getSILValue(), pointerTy.unbridged(),

0 commit comments

Comments
 (0)