Skip to content

Commit cf1a94c

Browse files
committed
Update SILProperty and SILMoveOnlyDeinit ctor SerializedKind arg
1 parent 7c2e77a commit cf1a94c

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

include/swift/SIL/SILMoveOnlyDeinit.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class SILMoveOnlyDeinit final : public SILAllocated<SILMoveOnlyDeinit> {
5151
: nominalDecl(nullptr), funcImpl(nullptr), serialized(unsigned(IsNotSerialized)) {}
5252

5353
SILMoveOnlyDeinit(NominalTypeDecl *nominaldecl, SILFunction *implementation,
54-
bool serialized);
54+
unsigned serialized);
5555
~SILMoveOnlyDeinit();
5656

5757
public:

include/swift/SIL/SILProperty.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class SILProperty : public llvm::ilist_node<SILProperty>,
5353
AbstractStorageDecl *Decl,
5454
std::optional<KeyPathPatternComponent> Component);
5555

56-
bool isSerialized() const { return Serialized; }
56+
bool isSerialized() const { return Serialized == SerializedKind_t(IsSerialized); }
5757

5858
AbstractStorageDecl *getDecl() const { return Decl; }
5959

test/SILOptimizer/package-cmo.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@
1111
import Module
1212
import ModuleTBD
1313

14+
// FIXME: sil_global should be [serialized_for_package] with package-cmo
1415
// CHECK-LABEL: sil_global public_external @$s6Module0A6StructV22privateFunctionPointeryS2icvpZ : $@callee_guaranteed (Int) -> Int{{$}}
1516
public func callPrivateFunctionPointer(_ x: Int) -> Int {
1617
return Module.ModuleStruct.privateFunctionPointer(x)
1718
}
1819

20+
// FIXME: sil_global should be [serialized_for_package] with package-cmo
1921
// CHECK-LABEL: sil_global package_external @$s6Module03PkgA6StructV14closurePointeryS2icvpZ : $@callee_guaranteed (Int) -> Int{{$}}
2022
package func callStaticPkgClosurePointer(_ x: Int) -> Int {
2123
return Module.PkgModuleStruct.closurePointer(x)

0 commit comments

Comments
 (0)