This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Remove unnecessary reinterpret_cast from typeinfo
ClosedPublic

Authored by Jonathan.Crowther on Jun 23 2021, 1:38 PM.

Details

Summary

In typeinfo there is a reinterpret_cast between a uintptr_t and size_t. These are two integer types and therefore a reinterpret_cast is not right for this situation. It looks like it may have been copied and pasted from above in the file. An implicit cast works in it's place.

Diff Detail

Event Timeline

Jonathan.Crowther requested review of this revision.Jun 23 2021, 1:38 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 23 2021, 1:38 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript
ldionne accepted this revision.Jun 24 2021, 9:16 AM
This revision is now accepted and ready to land.Jun 24 2021, 9:16 AM