Skip to content

Commit 58dd658

Browse files
committed
[lldb] Fix a use-after-free in FindFileTest.cpp
ArrayRef doesn't take ownership.
1 parent 3250317 commit 58dd658

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/unittests/Target/FindFileTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ TEST_F(FindFileTest, FindFileTests) {
8484
{R"(C:\foo)", llvm::sys::path::Style::windows, DirName.c_str()},
8585
{R"(C:\foo\test)", llvm::sys::path::Style::windows, FileName.c_str()}};
8686

87-
ArrayRef<FileSpec> fails{
87+
std::vector<FileSpec> fails{
8888
// path not mapped
8989
FileSpec("/foo", llvm::sys::path::Style::posix),
9090
FileSpec("/new", llvm::sys::path::Style::posix),

0 commit comments

Comments
 (0)