This is an archive of the discontinued LLVM Phabricator instance.

[demangler] Make OutputBuffer non-copyable
ClosedPublic

Authored by urnathan on Mar 3 2022, 6:21 AM.

Details

Reviewers
iains
ChuanqiXu
bruno
Group Reviewers
Restricted Project
Commits
rG64221645a824: [demangler] Make OutputBuffer non-copyable
Summary

In addressing the buffer ownership API, I discovered a rogue member function that returned by value rather than by reference. It clearly intended to return by reference, but because the copy ctor wasn't deleted this wasn't caught.

It is not necessary to make this a move-only type, although that would be an alternative.

Diff Detail

Event Timeline

urnathan created this revision.Mar 3 2022, 6:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 3 2022, 6:21 AM
urnathan requested review of this revision.Mar 3 2022, 6:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 3 2022, 6:21 AM
bruno accepted this revision.Mar 3 2022, 3:35 PM

LGTM

This revision is now accepted and ready to land.Mar 3 2022, 3:35 PM
This revision was landed with ongoing or failed builds.Mar 4 2022, 4:43 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMar 4 2022, 4:43 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript