diff options
author | Vitaly Buka <vitalybuka@google.com> | 2023-05-05 14:48:57 -0700 |
---|---|---|
committer | Vitaly Buka <vitalybuka@google.com> | 2023-05-05 14:48:57 -0700 |
commit | c3a46fe9c15176acc169cd2413c525bf92704419 (patch) | |
tree | 8dc335bfd0f4c95d2680b15d55b1c96f28da60c9 /compiler-rt/test | |
parent | 43de9cbec97aad44a3bba4cc878ab58caf6ea270 (diff) | |
download | llvm-c3a46fe9c15176acc169cd2413c525bf92704419.tar.gz |
[test][lsan] Remove std::vector from test
Diffstat (limited to 'compiler-rt/test')
-rw-r--r-- | compiler-rt/test/lsan/TestCases/create_thread_leak.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler-rt/test/lsan/TestCases/create_thread_leak.cpp b/compiler-rt/test/lsan/TestCases/create_thread_leak.cpp index 7deab540df2a..d04f5f64f23b 100644 --- a/compiler-rt/test/lsan/TestCases/create_thread_leak.cpp +++ b/compiler-rt/test/lsan/TestCases/create_thread_leak.cpp @@ -11,7 +11,6 @@ #include <pthread.h> #include <stdlib.h> -#include <vector> #include <sanitizer/lsan_interface.h> @@ -25,7 +24,7 @@ static void *thread_free(void *args) { int main(int argc, char **argv) { int n = atoi(argv[1]); for (int i = 0; i < n; ++i) { - std::vector<pthread_t> threads(10); + pthread_t threads[10]; for (auto &thread : threads) { pthread_create(&thread, 0, thread_free, malloc(123)); |