extern "C" on Windows implies nothrow. We shouldn't be throwing exceptions either way.

Change-Id: If0ed1f7ec194bf7f65b7cea1a5c250e768a8f190


[ROCm/clr commit: a15e895cfd]
Этот коммит содержится в:
Vladislav Sytchenko committed 2020-03-09 11:46:55 -04:00
1 родитель cba02a6305
Коммит afe8d26dd1
1 file changed
+5 -1
+5 -1
Просмотреть файл
@@ -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,