Skip to content

Commit e0c46a6

Browse files
committed
Change container
1 parent e95cab5 commit e0c46a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

offload/include/PerThreadTable.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#define OFFLOAD_PERTHREADTABLE_H
1515

1616
#include <list>
17+
#include <llvm/ADT/SmallVector.h>
1718
#include <memory>
1819
#include <mutex>
1920
#include <type_traits>
@@ -24,7 +25,7 @@ template <typename ObjectType> struct PerThread {
2425
};
2526

2627
std::mutex Mutex;
27-
std::list<std::shared_ptr<PerThreadData>> ThreadDataList;
28+
llvm::SmallVector<std::shared_ptr<PerThreadData>> ThreadDataList;
2829

2930
// define default constructors, disable copy and move constructors
3031
PerThread() = default;

0 commit comments

Comments
 (0)