This is an archive of the discontinued LLVM Phabricator instance.

ADT: Make StringRef::size() and StringRef::empty() constexpr
ClosedPublic

Authored by dexonsmith on Dec 8 2021, 1:43 PM.

Details

Summary

This unblocks using StringLiteral::size() for a SmallVector size in
another patch.

Diff Detail

Event Timeline

dexonsmith requested review of this revision.Dec 8 2021, 1:43 PM
dexonsmith created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptDec 8 2021, 1:43 PM
dblaikie accepted this revision.Dec 8 2021, 1:52 PM

Sounds good!

This revision is now accepted and ready to land.Dec 8 2021, 1:52 PM
This revision was landed with ongoing or failed builds.Dec 8 2021, 4:15 PM
This revision was automatically updated to reflect the committed changes.