[Frontend] Use experimental feature for layout prespecializations (#61451)

This commit is contained in:
Dario Rexin
2022-10-06 15:21:01 -07:00
committed by GitHub
parent b8158932fb
commit 992cae456b
13 changed files with 386 additions and 137 deletions

View File

@@ -1489,6 +1489,11 @@ void InterfaceSubContextDelegateImpl::inheritOptionsForBuildingInterface(
std::string pair = (llvm::Twine(lhs) + "=" + rhs).str();
GenericArgs.push_back(ArgSaver.save(pair));
});
if (LangOpts.hasFeature(Feature::LayoutPrespecialization)) {
genericSubInvocation.getLangOptions().Features.insert(
Feature::LayoutPrespecialization);
}
}
bool InterfaceSubContextDelegateImpl::extractSwiftInterfaceVersionAndArgs(