Skip to content

Commit ed871d5

Browse files
authored
Merge pull request #22884 from compnerd/weak_cast
Remote: loosen a cast
2 parents b37d640 + 40c3655 commit ed871d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/Remote/MetadataReader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ class MetadataReader {
432432
if (!Reader->readBytes(RemoteAddress(ExistentialAddress),
433433
(uint8_t *)&Container, sizeof(Container)))
434434
return None;
435-
auto MetadataAddress = reinterpret_cast<StoredPointer>(Container.Type);
435+
auto MetadataAddress = static_cast<StoredPointer>(Container.Type);
436436
auto Metadata = readMetadata(MetadataAddress);
437437
if (!Metadata)
438438
return None;

0 commit comments

Comments
 (0)