Skip to content

Commit 7c9a716

Browse files
authored
[Swift Static Mirror] Avoid downcasting to 32-bit value when reading out TypeRef address of a same-type requirement (swiftlang#60042)
1 parent 3349113 commit 7c9a716

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
@@ -1598,7 +1598,7 @@ class TypeRefBuilder {
15981598
// is an offset to a TypeRef string, read it.
15991599
auto readRequirementTypeRefAddress =
16001600
[&](uintptr_t offsetFromOpaqueDescBase,
1601-
uintptr_t requirementAddress) -> uint32_t {
1601+
uintptr_t requirementAddress) -> uintptr_t {
16021602
std::string typeRefString = "";
16031603
auto fieldOffsetOffset = requirementAddress + offsetFromOpaqueDescBase -
16041604
(uintptr_t)opaqueTypeDescriptor;

0 commit comments

Comments
 (0)