Merge pull request #71069 from meg-gupta/lifetimedependencelangattr

Initial language support for lifetime dependence
This commit is contained in:
Meghana Gupta
2024-01-25 00:39:13 -08:00
committed by GitHub
24 changed files with 972 additions and 63 deletions

View File

@@ -6709,13 +6709,13 @@ detail::function_deserializer::deserialize(ModuleFile &MF,
globalActor = globalActorTy.get();
}
auto info =
FunctionType::ExtInfoBuilder(*representation, noescape, throws,
thrownError, *diffKind,
clangFunctionType, globalActor)
.withConcurrent(concurrent)
.withAsync(async)
.build();
// TODO: Handle LifetimeDependenceInfo here.
auto info = FunctionType::ExtInfoBuilder(
*representation, noescape, throws, thrownError, *diffKind,
clangFunctionType, globalActor, LifetimeDependenceInfo())
.withConcurrent(concurrent)
.withAsync(async)
.build();
auto resultTy = MF.getTypeChecked(resultID);
if (!resultTy)