Skip to content

Commit 7118df1

Browse files
committed
Use std::forward
1 parent ebc06ec commit 7118df1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

offload/liboffload/src/OffloadImpl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ struct ol_device_impl_t {
4545
ol_device_impl_t(int DeviceNum, GenericDeviceTy *Device,
4646
ol_platform_handle_t Platform, InfoTreeNode &&DevInfo)
4747
: DeviceNum(DeviceNum), Device(Device), Platform(Platform),
48-
Info(std::move(DevInfo)) {}
48+
Info(std::forward<InfoTreeNode>(DevInfo)) {}
4949
int DeviceNum;
5050
GenericDeviceTy *Device;
5151
ol_platform_handle_t Platform;

0 commit comments

Comments
 (0)