Skip to content

Commit aaed336

Browse files
tbujewsksys_zuul
authored and
sys_zuul
committed
Not all reg keys have been read correctly
Change-Id: Ia702b3f850a766020cb5cf5901a4dc8df9c5953b
1 parent b9f301d commit aaed336

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: IGC/AdaptorOCL/ocl_igc_interface/impl/igc_ocl_translation_ctx_impl.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ CIF_DECLARE_INTERFACE_PIMPL(IgcOclTranslationCtx) : CIF::PimplBase
195195
}
196196
inputArgs.GTPinInput = gtPinInput;
197197

198-
IGC::CPlatform igcPlatform = this->globalState.GetIgcCPlatform();
199198
CIF::Sanity::NotNullOrAbort(this->globalState.GetPlatformImpl());
200199
auto platform = this->globalState.GetPlatformImpl()->p;
201200

@@ -225,6 +224,8 @@ CIF_DECLARE_INTERFACE_PIMPL(IgcOclTranslationCtx) : CIF::PimplBase
225224
LoadRegistryKeys(RegKeysFlagsFromOptions, &RegFlagNameError);
226225
if(RegFlagNameError) outputInterface->GetImpl()->SetError(TranslationErrorType::Unused, "Invalid registry flag name in -igc_opts, at least one flag has been ignored");
227226

227+
IGC::CPlatform igcPlatform = this->globalState.GetIgcCPlatform();
228+
228229
const char *extraOptions = IGC_GET_REGKEYSTRING(ExtraOCLOptions);
229230
std::string combinedOptions;
230231
if (extraOptions[0] != '\0')

0 commit comments

Comments
 (0)