Skip to content

Commit 36f67b2

Browse files
committed
[Property wrappers] Be sure to record the original value initializer!
1 parent f51119a commit 36f67b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Sema/TypeCheckStorage.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2436,7 +2436,8 @@ PropertyWrapperBackingPropertyInfoRequest::evaluate(Evaluator &evaluator,
24362436
}
24372437

24382438
// Get the property wrapper information.
2439-
if (!var->allAttachedPropertyWrappersHaveInitialValueInit()) {
2439+
if (!var->allAttachedPropertyWrappersHaveInitialValueInit() &&
2440+
!originalInitialValue) {
24402441
return PropertyWrapperBackingPropertyInfo(
24412442
backingVar, storageVar, nullptr, nullptr, nullptr);
24422443
}

0 commit comments

Comments
 (0)