use new noncopyable types infrastructure

The infrastructure underpinning the new feature NoncopyableGenerics is
mature enough to be used.
This commit is contained in:
Kavon Farvardin
2024-03-12 17:50:38 -07:00
parent af933c6723
commit 149c052ec5
44 changed files with 150 additions and 610 deletions

View File

@@ -3362,7 +3362,6 @@ CompilerInvocation::loadFromSerializedAST(StringRef data) {
serialization::validateSerializedAST(
data,
getSILOptions().EnableOSSAModules,
LangOpts.hasFeature(Feature::NoncopyableGenerics),
LangOpts.SDKName,
&extendedInfo);
@@ -3401,7 +3400,6 @@ CompilerInvocation::setUpInputForSILTool(
auto result = serialization::validateSerializedAST(
fileBufOrErr.get()->getBuffer(),
getSILOptions().EnableOSSAModules,
LangOpts.hasFeature(Feature::NoncopyableGenerics),
LangOpts.SDKName,
&extendedInfo);
bool hasSerializedAST = result.status == serialization::Status::Valid;