Skip to content

Commit 9afacf3

Browse files
committed
Review feedback
1 parent 0c30b9e commit 9afacf3

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

offload/liboffload/API/Program.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def : Function {
1414
let name = "olCreateProgram";
1515
let desc = "Create a program for the device from the binary image pointed to by `ProgData`.";
1616
let details = [
17-
"`ProgData` must remain valid for the entire lifetime of the output `Program` handle",
17+
"The provided `ProgData` will be copied and need not outlive the returned handle",
1818
];
1919
let params = [
2020
Param<"ol_device_handle_t", "Device", "handle of the device", PARAM_IN>,

offload/plugins-nextgen/amdgpu/src/rtl.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2027,10 +2027,7 @@ struct AMDGPUDeviceTy : public GenericDeviceTy, AMDGenericDeviceTy {
20272027
AMDGPUDeviceImageTy &AMDImage = static_cast<AMDGPUDeviceImageTy &>(*Image);
20282028

20292029
// Unload the executable of the image.
2030-
if (auto Err = AMDImage.unloadExecutable())
2031-
return Err;
2032-
2033-
return Plugin::success();
2030+
return AMDImage.unloadExecutable();
20342031
}
20352032

20362033
/// Deinitialize the device and release its resources.

0 commit comments

Comments
 (0)