Skip to content

Commit 8ea5a86

Browse files
authored
Merge pull request #21335 from adrian-prantl/42300829
2 parents 7020740 + a100d3e commit 8ea5a86

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stdlib/public/runtime/SwiftObject.mm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -893,6 +893,9 @@ static bool isObjCForUnownedReference(void *value) {
893893

894894
UnownedReference *swift::swift_unknownObjectUnownedInit(UnownedReference *dest,
895895
void *value) {
896+
// Note that LLDB also needs to know about the memory layout of unowned
897+
// references. The implementation here needs to be kept in sync with
898+
// lldb_private::SwiftLanguagueRuntime.
896899
if (!value) {
897900
dest->Value = nullptr;
898901
} else if (isObjCForUnownedReference(value)) {

0 commit comments

Comments
 (0)