diff options
| author | Vedant Kumar <vsk@apple.com> | 2016-09-23 18:57:32 +0000 |
|---|---|---|
| committer | Vedant Kumar <vsk@apple.com> | 2016-09-23 18:57:32 +0000 |
| commit | bc6479850e1d4a4522c6d195f93704d3e78e54e3 (patch) | |
| tree | a62afdc088765fcce12312bec7d6ff6d785b044a /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 224ef8d73bb49c765ac8d7a352b244ec7c24807e (diff) | |
[llvm-cov] Get rid of all invalid filename references
We used to append filenames into a vector of std::string, and then
append a reference to each string into a separate vector. This made it
easier to work with the getUniqueSourceFiles API. But it's buggy.
std::string has a small-string optimization, so you can't expect to
capture a reference to one if you're copying it into a growing vector.
Add a test that triggers this invalid reference to std::string scenario,
and kill the issue with fire by just using ArrayRef<std::string>
everywhere.
llvm-svn: 282281
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
