Skip to content

Commit 34dd9dd

Browse files
committed
fix const getDevice() call
1 parent 7c753ef commit 34dd9dd

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
@@ -1295,7 +1295,7 @@ struct GenericPluginTy {
12951295
return *Devices[DeviceId];
12961296
}
12971297
const GenericDeviceTy &getDevice(int32_t DeviceId) const {
1298-
return cast<const GenericDeviceTy>(getDevice(DeviceId));
1298+
return const_cast<GenericPluginTy *>(this)->getDevice(DeviceId);
12991299
}
13001300

13011301
/// Get the number of active devices.

0 commit comments

Comments
 (0)