This is an archive of the discontinued LLVM Phabricator instance.

[demangler] Buffer peeking needs buffer
ClosedPublic

Authored by urnathan on Apr 6 2022, 4:35 AM.

Details

Reviewers
iains
dblaikie
Group Reviewers
Restricted Project
Commits
rGe48cd7088b73: [demangler] Buffer peeking needs buffer
Summary

The output buffer has a 'back' member, which returns NUL when you try it with an empty buffer. But there are no use cases that need that additional functionality. This makes the 'back' member behave more like STL containers' back members. (It still returns a value, not a reference.)

Diff Detail

Event Timeline

urnathan created this revision.Apr 6 2022, 4:35 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 6 2022, 4:35 AM
urnathan requested review of this revision.Apr 6 2022, 4:35 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 6 2022, 4:35 AM
urnathan updated this revision to Diff 425181.Apr 26 2022, 4:44 AM

rebase & ping?

dblaikie accepted this revision.May 5 2022, 12:48 PM

Sure, if that works.

This revision is now accepted and ready to land.May 5 2022, 12:48 PM
This revision was landed with ongoing or failed builds.May 9 2022, 4:55 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMay 9 2022, 4:55 AM
Herald added 1 blocking reviewer(s): Restricted Project. · View Herald Transcript