[Openmp-commits] [PATCH] D109276: [OpenMP][libomptarget] Change device vector elements to unique_ptr type
Shilei Tian via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Sat Sep 4 11:58:34 PDT 2021
tianshilei1992 added inline comments.
================
Comment at: openmp/libomptarget/src/rtl.cpp:325
for (int32_t device_id = 0; device_id < R.NumberOfDevices; device_id++) {
+ PM->Devices.push_back(std::make_unique<DeviceTy>(&R));
// global device ID
----------------
what about `emplace_back`?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109276/new/
https://reviews.llvm.org/D109276
More information about the Openmp-commits
mailing list