From 257bb9d2fc595ffc71a1ea2073b11d296ab76447 Mon Sep 17 00:00:00 2001 From: Jatin Chaudhary Date: Wed, 29 Sep 2021 23:32:49 -0700 Subject: [PATCH] SWDEV-304552 - Add default to return the last error value Change-Id: Ia399033e30aaa454a454067f5afc6f7d1e5ff8dd [ROCm/clr commit: 4cd4d2d28092763d165932b0b8139c0240ab816f] --- projects/clr/hipamd/include/hip/nvidia_detail/nvidia_hiprtc.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/projects/clr/hipamd/include/hip/nvidia_detail/nvidia_hiprtc.h b/projects/clr/hipamd/include/hip/nvidia_detail/nvidia_hiprtc.h index 449fe342af..db5657e6e6 100644 --- a/projects/clr/hipamd/include/hip/nvidia_detail/nvidia_hiprtc.h +++ b/projects/clr/hipamd/include/hip/nvidia_detail/nvidia_hiprtc.h @@ -76,6 +76,8 @@ inline static nvrtcResult hiprtcResultTonvrtcResult(hiprtcResult result) { return NVRTC_ERROR_NAME_EXPRESSION_NOT_VALID; case HIPRTC_ERROR_INTERNAL_ERROR: return NVRTC_ERROR_INTERNAL_ERROR; + default: + return NVRTC_ERROR_INTERNAL_ERROR; } } @@ -105,6 +107,8 @@ inline static hiprtcResult nvrtcResultTohiprtcResult(nvrtcResult result) { return HIPRTC_ERROR_NAME_EXPRESSION_NOT_VALID; case NVRTC_ERROR_INTERNAL_ERROR: return HIPRTC_ERROR_INTERNAL_ERROR; + default: + return HIPRTC_ERROR_INTERNAL_ERROR; } }