diff options
Diffstat (limited to 'dev-libs/rocr-runtime/files/rocr-runtime-5.7.1-musl.patch')
-rw-r--r-- | dev-libs/rocr-runtime/files/rocr-runtime-5.7.1-musl.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/dev-libs/rocr-runtime/files/rocr-runtime-5.7.1-musl.patch b/dev-libs/rocr-runtime/files/rocr-runtime-5.7.1-musl.patch index 0e8e53209738..13d731adb3a2 100644 --- a/dev-libs/rocr-runtime/files/rocr-runtime-5.7.1-musl.patch +++ b/dev-libs/rocr-runtime/files/rocr-runtime-5.7.1-musl.patch @@ -23,6 +23,17 @@ Bug: https://github.com/ROCm/ROCR-Runtime/issues/181 } hsa_signal_value_t BusyWaitSignal::LoadRelaxed() { +--- a/core/runtime/hsa.cpp ++++ b/core/runtime/hsa.cpp +@@ -155,7 +155,7 @@ template <class T> struct ValidityError<const T*> { + + template <class T> + static __forceinline bool IsValid(T* ptr) { +- return (ptr == NULL) ? NULL : ptr->IsValid(); ++ return (ptr == NULL) ? false : ptr->IsValid(); + } + + namespace AMD { --- a/core/util/lnx/os_linux.cpp +++ b/core/util/lnx/os_linux.cpp @@ -111,9 +111,12 @@ class os_thread { |