GetPath() returns a std::string temporary. You can't reference just the c_str.
authorJim Ingham <jingham@apple.com>
Thu, 6 Aug 2020 02:12:15 +0000 (19:12 -0700)
committerJim Ingham <jingham@apple.com>
Thu, 6 Aug 2020 02:12:15 +0000 (19:12 -0700)
commit1c1ffa6a300a60c81be41a3e08a4e9da7499adc1
tree59dbea93b73e65f56e0f60d1a062bcf96a8930d9
parent08063f85a7eadb1e54d0a03e0307bf15319513e8
GetPath() returns a std::string temporary.  You can't reference just the c_str.

Found by the static analyzer.
lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp