This is an archive of the discontinued LLVM Phabricator instance.

[libc++][AIX] Use non-unique implementation for typeinfo comparison
ClosedPublic

Authored by xingxue on Jul 28 2022, 9:26 AM.

Details

Summary

The AIX linker does not merge typeinfos when shared libraries are involved, which causes address comparison to fail although the types are the same. This patch changes to use the non-unique implementation for typeinfo comparison for AIX.

Diff Detail

Event Timeline

xingxue created this revision.Jul 28 2022, 9:26 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 28 2022, 9:26 AM
Herald added a subscriber: smeenai. · View Herald Transcript
xingxue requested review of this revision.Jul 28 2022, 9:26 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 28 2022, 9:26 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
philnik accepted this revision.Jul 28 2022, 9:46 AM
philnik added a subscriber: philnik.

LGTM % nit.

libcxx/include/typeinfo
177
This revision is now accepted and ready to land.Jul 28 2022, 9:46 AM
This revision was landed with ongoing or failed builds.Jul 28 2022, 10:18 AM
This revision was automatically updated to reflect the committed changes.
xingxue marked an inline comment as done.Jul 28 2022, 10:20 AM
xingxue added inline comments.
libcxx/include/typeinfo
177

Changed the comment as suggested. Thanks, @philnik!