SWDEV-329516 - Don't clear error if setKernels returns false.

Change-Id: I75f69bcdf01bad63a9273dc37afd69644f6b3b22
이 커밋은 다음에 포함됨:
Jaydeep Patel
2022-07-27 06:00:30 +00:00
부모 31468d0426
커밋 efedf08327
+7 -6
파일 보기
@@ -1753,12 +1753,13 @@ bool Program::trySubstObjFile(const char *SubstCfgFile,
buildError_ = CL_BUILD_PROGRAM_FAILURE;
str << "Subst failure: cannot read binary file " << substRes.first << '\n';
} else {
setKernels(binary, binSize);
buildStatus_ = CL_BUILD_SUCCESS;
buildError_ = 0;
str << "Substituted program hash 0x"
<< std::setbase(16) << substRes.second
<< " with " << substRes.first << '\n';
if (setKernels(binary, binSize)) {
buildStatus_ = CL_BUILD_SUCCESS;
buildError_ = 0;
str << "Substituted program hash 0x"
<< std::setbase(16) << substRes.second
<< " with " << substRes.first << '\n';
}
}
buildLog_ += str.str();
return true;