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 /clang/lib/StaticAnalyzer/Frontend/ModelConsumer.cpp | |
| parent | 224ef8d73bb49c765ac8d7a352b244ec7c24807e (diff) | |
| download | bcm5719-llvm-bc6479850e1d4a4522c6d195f93704d3e78e54e3.tar.gz bcm5719-llvm-bc6479850e1d4a4522c6d195f93704d3e78e54e3.zip | |
[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 'clang/lib/StaticAnalyzer/Frontend/ModelConsumer.cpp')
0 files changed, 0 insertions, 0 deletions

