Skip to content

Commit 40c3655

Browse files
committed
Remote: loosen a cast
cl objects to the use of the reinterpret_cast for the casting between integral types. Loosen to a static_cast.
1 parent e71b2a5 commit 40c3655

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)