Skip to content

Commit 72f4566

Browse files
committed
Use last
1 parent 3266c95 commit 72f4566

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

offload/liboffload/src/OffloadImpl.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,9 +304,7 @@ Error olGetDeviceInfoImplDetail(ol_device_handle_t Device,
304304
return Info.write<void *>(Device->Platform);
305305
if (PropName == OL_DEVICE_INFO_TYPE)
306306
return Info.write<ol_device_type_t>(OL_DEVICE_TYPE_GPU);
307-
// TODO: Update when https://github.com/llvm/llvm-project/pull/147314 is
308-
// merged
309-
if (PropName > OL_DEVICE_INFO_MAX_WORK_GROUP_SIZE)
307+
if (PropName >= OL_DEVICE_INFO_LAST)
310308
return createOffloadError(ErrorCode::INVALID_ENUMERATION,
311309
"getDeviceInfo enum '%i' is invalid", PropName);
312310

0 commit comments

Comments
 (0)