nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1diff --git a/libomptarget/plugins/amdgpu/impl/impl.cpp b/libomptarget/plugins/amdgpu/impl/impl.cpp
2index 80e024789..3a14e0889 100644
3--- a/libomptarget/plugins/amdgpu/impl/impl.cpp
4+++ b/libomptarget/plugins/amdgpu/impl/impl.cpp
5@@ -21,10 +21,11 @@ bool is_locked(void *ptr, hsa_status_t *err_p, void **agentBaseAddress) {
6 info.size = sizeof(hsa_amd_pointer_info_t);
7 err = hsa_amd_pointer_info(ptr, &info, nullptr, nullptr, nullptr);
8
9- if (err != HSA_STATUS_SUCCESS)
10+ if (err != HSA_STATUS_SUCCESS) {
11 DP("Error when getting pointer info\n");
12- else
13+ } else {
14 is_locked = (info.type == HSA_EXT_POINTER_TYPE_LOCKED);
15+ }
16
17 if (is_locked && agentBaseAddress != nullptr) {
18 // When user passes in a basePtr+offset we need to fix the