SWDEV-286150 - Fix a crash when LC is forced

Change-Id: I1127490502012cdbc0391e45b5d9310f04f9482b


[ROCm/clr commit: b0af08ac04]
Este cometimento está contido em:
German Andryeyev cometeu 2021-11-05 12:35:11 -04:00
1 ascendente 3e0539fc40
cometimento 92be4f5781
1 ficheiro modificado
+5
+5
Ver ficheiro
@@ -266,6 +266,11 @@ public:
return HSAIL_DYN(aclGetDeviceBinary)(cl, bin, kernel, size, error_code);
}
static const bool ValidateBinaryImage(const void* binary, size_t length, unsigned type) {
#if defined(HSAIL_DYN_DLL)
if (cep_.aclValidateBinaryImage == nullptr) {
return false;
}
#endif // defined(HSAIL_DYN_DLL)
return HSAIL_DYN(aclValidateBinaryImage)(binary, length, type);
}
static aclJITObjectImage JITObjectImageCreate(aclCompiler *cl, const void* buffer, size_t length, aclBinary* bin, acl_error* error_code) {