Skip to content

Commit c90ee3c

Browse files
committed
Reflection: Fix for last-minute fix for 32-bit platforms that broke 64-bit platforms
1 parent 135e9b9 commit c90ee3c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/swift/Reflection/ReflectionContext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ class ReflectionContext
385385
//
386386
// Metadata bindings are stored consecutively at the beginning of the
387387
// closure context.
388-
unsigned Offset = ((sizeof(StoredPointer) == 4 ? 12 : 8) +
388+
unsigned Offset = ((sizeof(StoredPointer) == 4 ? 12 : 16) +
389389
sizeof(StoredPointer) * Index);
390390

391391
StoredPointer MetadataAddress;

validation-test/Reflection/functions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: rm -rf %t && mkdir -p %t
22
// RUN: %target-build-swift -Xfrontend -enable-reflection-metadata -Xfrontend -enable-reflection-names -lswiftSwiftReflectionTest %s -o %t/functions
3-
// RUN: %target-run %target-swift-reflection-test %t/functions 2>&1 | FileCheck %s --check-prefix=CHECK-%target-ptrsize
3+
// RUN: %target-run %target-swift-reflection-test %t/functions 2>&1 | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize
44
// REQUIRES: objc_interop
55

66
/*

0 commit comments

Comments
 (0)