[lldb] Fix a use-after-free in FindFileTest.cpp

ArrayRef doesn't take ownership.
This commit is contained in:
Raphael Isemann 2021-11-02 12:39:25 +01:00
parent 325031786e
commit 58dd658583
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ TEST_F(FindFileTest, FindFileTests) {
{R"(C:\foo)", llvm::sys::path::Style::windows, DirName.c_str()},
{R"(C:\foo\test)", llvm::sys::path::Style::windows, FileName.c_str()}};
ArrayRef<FileSpec> fails{
std::vector<FileSpec> fails{
// path not mapped
FileSpec("/foo", llvm::sys::path::Style::posix),
FileSpec("/new", llvm::sys::path::Style::posix),