Skip to content

Commit 4aad8a9

Browse files
authored
Merge pull request #60041 from artemcm/FixupPointerSize_SSM_bug
[Swift Static Mirror] Avoid downcasting to 32-bit value when reading out TypeRef address of a same-type requirement
2 parents 43ccd9e + cc65b3e commit 4aad8a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/Reflection/TypeRefBuilder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1690,7 +1690,7 @@ class TypeRefBuilder {
16901690
// is an offset to a TypeRef string, read it.
16911691
auto readRequirementTypeRefAddress =
16921692
[&](uintptr_t offsetFromOpaqueDescBase,
1693-
uintptr_t requirementAddress) -> uint32_t {
1693+
uintptr_t requirementAddress) -> uintptr_t {
16941694
std::string typeRefString = "";
16951695
auto fieldOffsetOffset = requirementAddress + offsetFromOpaqueDescBase -
16961696
(uintptr_t)opaqueTypeDescriptor;

0 commit comments

Comments
 (0)