This is an archive of the discontinued LLVM Phabricator instance.

ADT: Add hash_value overload for Optional
ClosedPublic

Authored by dexonsmith on Dec 4 2020, 11:34 AM.

Details

Summary

Add a hash_value for Optional so that other data structures with
optional fields can easily hash them. I have a use for this in an
upcoming patch.

Diff Detail

Event Timeline

dexonsmith created this revision.Dec 4 2020, 11:34 AM
dexonsmith requested review of this revision.Dec 4 2020, 11:34 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 4 2020, 11:34 AM
dblaikie accepted this revision.Dec 8 2020, 2:32 PM

Looks good, thanks!

This revision is now accepted and ready to land.Dec 8 2020, 2:32 PM
This revision was landed with ongoing or failed builds.Dec 8 2020, 3:25 PM
This revision was automatically updated to reflect the committed changes.