diff --git a/hipamd/vdi/hip_rtc.cpp b/hipamd/vdi/hip_rtc.cpp index 8bac9ae361..1f9a6e1636 100644 --- a/hipamd/vdi/hip_rtc.cpp +++ b/hipamd/vdi/hip_rtc.cpp @@ -193,8 +193,12 @@ const char* hiprtcGetErrorString(hiprtcResult x) { case HIPRTC_ERROR_INTERNAL_ERROR: return "HIPRTC_ERROR_INTERNAL_ERROR"; default: - throw std::logic_error{"Invalid HIPRTC result."}; + return nullptr; }; + + ShouldNotReachHere(); + + return nullptr; } hiprtcResult hiprtcCreateProgram(hiprtcProgram* prog, const char* src, const char* name,