mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #70866 from kavon/ncgenerics-stdlib-building-v4
Build Stdlib with Noncopyable Generics (Part 4)
This commit is contained in:
@@ -1753,9 +1753,10 @@ SwiftDeclSynthesizer::makeDereferencedPointeeProperty(FuncDecl *getter,
|
||||
: rawElementTy;
|
||||
// Use 'address' or 'mutableAddress' accessors for non-copyable
|
||||
// types that are returned indirectly.
|
||||
bool isImplicit = !elementTy->isNoncopyable(dc);
|
||||
bool isNoncopyable = dc->mapTypeIntoContext(elementTy)->isNoncopyable();
|
||||
bool isImplicit = !isNoncopyable;
|
||||
bool useAddress =
|
||||
rawElementTy->getAnyPointerElementType() && elementTy->isNoncopyable(dc);
|
||||
rawElementTy->getAnyPointerElementType() && isNoncopyable;
|
||||
|
||||
auto result = new (ctx)
|
||||
VarDecl(/*isStatic*/ false, VarDecl::Introducer::Var,
|
||||
|
||||
Reference in New Issue
Block a user