PR45561: Return a literal string rather than an error string to avoid returning refer...
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 15 Apr 2020 21:26:31 +0000 (14:26 -0700)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 15 Apr 2020 21:27:29 +0000 (14:27 -0700)
commit2f1c212e8837a9602f6bc6a96ca32bddafd3a4ec
tree20c018677ae2f0d0cad3daa5a1ac435e8dbaef67
parent50472c422cbbbbc6d27a4532a4025c4339fb6920
PR45561: Return a literal string rather than an error string to avoid returning reference to local

Changing the underlying YAML support to allow returning a literal
string, rather than a StringRef, would probably be a bigger refactor so
I didn't do that.
llvm/lib/TextAPI/MachO/TextStub.cpp