This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Don't use static locals for return value storage in some *AsCString functions
ClosedPublic

Authored by teemperor on Jul 24 2020, 3:29 AM.

Details

Summary

Let's just return a std::string to make this safe. formatv seemed overkill for formatting
the return values as they all just append an integer value to a constant string.

Diff Detail

Event Timeline

teemperor created this revision.Jul 24 2020, 3:29 AM
labath accepted this revision.Jul 24 2020, 3:52 AM

yes, please

This revision is now accepted and ready to land.Jul 24 2020, 3:52 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 30 2020, 3:18 AM