Skip to content

Commit e66f1b0

Browse files
committed
fix const getDevice() call
1 parent 73f448d commit e66f1b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

offload/plugins-nextgen/common/include/PluginInterface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1287,7 +1287,7 @@ struct GenericPluginTy {
12871287
return *Devices[DeviceId];
12881288
}
12891289
const GenericDeviceTy &getDevice(int32_t DeviceId) const {
1290-
return cast<const GenericDeviceTy>(getDevice(DeviceId));
1290+
return const_cast<GenericPluginTy *>(this)->getDevice(DeviceId);
12911291
}
12921292

12931293
/// Get the number of active devices.

0 commit comments

Comments
 (0)