mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[AST] Explicitly track things marked __owned.
This commit is contained in:
@@ -591,10 +591,10 @@ deriveEquatable_eq(TypeChecker &tc, Decl *parentDecl, NominalTypeDecl *typeDecl,
|
||||
auto enumTy = parentDC->getDeclaredTypeInContext();
|
||||
auto enumIfaceTy = parentDC->getDeclaredInterfaceType();
|
||||
|
||||
auto getParamDecl = [&](StringRef s) -> ParamDecl* {
|
||||
auto *param = new (C) ParamDecl(VarDecl::Specifier::Owned, SourceLoc(), SourceLoc(),
|
||||
Identifier(), SourceLoc(), C.getIdentifier(s),
|
||||
enumTy, parentDC);
|
||||
auto getParamDecl = [&](StringRef s) -> ParamDecl * {
|
||||
auto *param = new (C) ParamDecl(VarDecl::Specifier::Default, SourceLoc(),
|
||||
SourceLoc(), Identifier(), SourceLoc(),
|
||||
C.getIdentifier(s), enumTy, parentDC);
|
||||
param->setInterfaceType(enumIfaceTy);
|
||||
return param;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user