Skip to content

Commit 52800f3

Browse files
committed
Use SmallVector where possible
1 parent 9812333 commit 52800f3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

offload/liboffload/src/OffloadImpl.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ struct ol_platform_handle_t_ {
3434
std::vector<ol_device_handle_t_> Devices;
3535
};
3636

37-
std::vector<ol_platform_handle_t_> &Platforms() {
38-
static std::vector<ol_platform_handle_t_> Platforms;
37+
using PlatformVecT = SmallVector<ol_platform_handle_t_, 4>;
38+
PlatformVecT &Platforms() {
39+
static PlatformVecT Platforms;
3940
return Platforms;
4041
}
4142

0 commit comments

Comments
 (0)