Skip to content

Commit a241dd9

Browse files
committed
remove incorrect comment
1 parent 915c4ac commit a241dd9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

offload/liboffload/src/OffloadImpl.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,6 @@ Error olMemFill_impl(ol_queue_handle_t Queue, void *Ptr, size_t PatternSize,
887887

888888
Error olCreateProgram_impl(ol_device_handle_t Device, const void *ProgData,
889889
size_t ProgDataSize, ol_program_handle_t *Program) {
890-
// Make a copy of the program binary in case it is released by the caller.
891890
StringRef Buffer(reinterpret_cast<const char *>(ProgData), ProgDataSize);
892891
Expected<plugin::DeviceImageTy *> Res =
893892
Device->Device->loadBinary(Device->Device->Plugin, Buffer);
@@ -901,7 +900,6 @@ Error olCreateProgram_impl(ol_device_handle_t Device, const void *ProgData,
901900

902901
Error olIsValidBinary_impl(ol_device_handle_t Device, const void *ProgData,
903902
size_t ProgDataSize, bool *IsValid) {
904-
// Make a copy of the program binary in case it is released by the caller.
905903
StringRef Buffer(reinterpret_cast<const char *>(ProgData), ProgDataSize);
906904
*IsValid = Device->Device->Plugin.isDeviceCompatible(
907905
Device->Device->getDeviceId(), Buffer);

0 commit comments

Comments
 (0)