This is an archive of the discontinued LLVM Phabricator instance.

[clang] __is_trivially_equality_comparable should return false for arrays
ClosedPublic

Authored by philnik on Jun 25 2023, 8:20 PM.

Details

Summary

When comparing two arrays, their pointers are compared instead of their elements, which means that they are not trivially equality comparable

Fixes #63371

Diff Detail

Event Timeline

philnik created this revision.Jun 25 2023, 8:20 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 25 2023, 8:20 PM
philnik requested review of this revision.Jun 25 2023, 8:20 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 25 2023, 8:20 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
philnik edited the summary of this revision. (Show Details)Jun 26 2023, 9:21 AM

s/menas/means/ in the commit message.

Otherwise LGTM

cor3ntin accepted this revision.Jun 26 2023, 9:28 AM
This revision is now accepted and ready to land.Jun 26 2023, 9:28 AM
philnik edited the summary of this revision. (Show Details)Jun 26 2023, 9:29 AM