[Serialization] Minor style clean up in SDKName logic

This commit is contained in:
Alexis Laferrière
2021-09-14 09:04:15 -07:00
parent 5c2122a08c
commit cc909b7e8f

View File

@@ -149,8 +149,8 @@ Status ModuleFile::associateWithFileContext(FileUnit *file, SourceLoc diagLoc,
return error(status);
}
auto clientSDK = ctx.LangOpts.SDKName;
StringRef moduleSDK = Core->SDKName;
StringRef clientSDK = ctx.LangOpts.SDKName;
if (ctx.SearchPathOpts.EnableSameSDKCheck &&
!moduleSDK.empty() && !clientSDK.empty() &&
moduleSDK != clientSDK) {