This is an archive of the discontinued LLVM Phabricator instance.

[NFC] use bitwise or instead of addition
ClosedPublic

Authored by fmayer on Dec 19 2022, 1:25 PM.

Details

Summary

as the bits are all distinct, these two operations have the same result,
but the bitwise operation is more explicit about what's happening.

Diff Detail

Event Timeline

fmayer created this revision.Dec 19 2022, 1:25 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 19 2022, 1:25 PM
fmayer requested review of this revision.Dec 19 2022, 1:25 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 19 2022, 1:25 PM
hctim accepted this revision.Dec 19 2022, 2:15 PM
This revision is now accepted and ready to land.Dec 19 2022, 2:15 PM
This revision was automatically updated to reflect the committed changes.