This is an archive of the discontinued LLVM Phabricator instance.

[ADT][NFC] Use declval to suppress warning for nullptr use.
ClosedPublic

Authored by fakepaper56 on Mar 6 2023, 8:00 AM.

Details

Summary

The patch uses declval instead of nullptr to suppress warning for calling member
function by nullptr. Also the patch replace is_same<*>::value with is_same_v<*>.

Diff Detail

Event Timeline

fakepaper56 created this revision.Mar 6 2023, 8:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 6 2023, 8:00 AM
fakepaper56 requested review of this revision.Mar 6 2023, 8:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 6 2023, 8:00 AM
kuhar accepted this revision.Mar 6 2023, 8:04 AM
This revision is now accepted and ready to land.Mar 6 2023, 8:04 AM
dexonsmith accepted this revision.Mar 6 2023, 11:23 AM

LGTM too.