Skip to content

Commit 079369f

Browse files
authored
Merge pull request #62328 from xymus/fix-102525437
2 parents c30f62f + 0ce8b48 commit 079369f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lib/Serialization/Deserialization.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5306,7 +5306,7 @@ llvm::Error DeclDeserializer::deserializeDeclCommon() {
53065306

53075307
// Do a quick check to see if this attribute is a move only attribute. If
53085308
// so, emit a nice error if we don't have experimental move only enabled.
5309-
if (Attr->getKind() == DeclAttrKind::DAK_MoveOnly &&
5309+
if (Attr && Attr->getKind() == DeclAttrKind::DAK_MoveOnly &&
53105310
!MF.getContext().LangOpts.Features.contains(Feature::MoveOnly)) {
53115311
MF.getContext().Diags.diagnose(
53125312
SourceLoc(),

test/Serialization/Recovery/implementation-only-missing.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ public struct PublicStruct: LibProtocol {
8080
public init() { }
8181

8282
public var nonWrappedVar: String = "some text"
83+
84+
@IoiPropertyWrapper("some text")
85+
private var wrappedVar: String
8386
}
8487

8588
struct StructWithOverride: HiddenProtocolWithOverride {

0 commit comments

Comments
 (0)