Merge branch 'main' into allowable-serialization

This commit is contained in:
Xi Ge
2022-11-28 09:36:04 -08:00
committed by GitHub
344 changed files with 1696 additions and 1648 deletions

View File

@@ -124,8 +124,8 @@ bool ExplicitModuleInterfaceBuilder::collectDepsForSerialization(
// Serialize the paths of dependencies in the SDK relative to it.
Optional<StringRef> SDKRelativePath = getRelativeDepPath(DepName, SDKPath);
StringRef DepNameToStore = SDKRelativePath.getValueOr(DepName);
bool IsSDKRelative = SDKRelativePath.hasValue();
StringRef DepNameToStore = SDKRelativePath.value_or(DepName);
bool IsSDKRelative = SDKRelativePath.has_value();
// Forwarding modules add the underlying prebuilt module to their
// dependency list -- don't serialize that.