mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[cxx-interop] Remove stale reference to rdar
There is no reason to require a body for move/copy ctors to use them.
This commit is contained in:
@@ -568,10 +568,7 @@ namespace {
|
||||
return nullptr;
|
||||
for (auto ctor : cxxRecordDecl->ctors()) {
|
||||
if (ctor->isCopyConstructor() &&
|
||||
ctor->getAccess() == clang::AS_public &&
|
||||
// rdar://106964356
|
||||
// ctor->doesThisDeclarationHaveABody() &&
|
||||
!ctor->isDeleted())
|
||||
ctor->getAccess() == clang::AS_public && !ctor->isDeleted())
|
||||
return ctor;
|
||||
}
|
||||
return nullptr;
|
||||
@@ -583,8 +580,7 @@ namespace {
|
||||
return nullptr;
|
||||
for (auto ctor : cxxRecordDecl->ctors()) {
|
||||
if (ctor->isMoveConstructor() &&
|
||||
ctor->getAccess() == clang::AS_public &&
|
||||
ctor->doesThisDeclarationHaveABody() && !ctor->isDeleted())
|
||||
ctor->getAccess() == clang::AS_public && !ctor->isDeleted())
|
||||
return ctor;
|
||||
}
|
||||
return nullptr;
|
||||
|
||||
@@ -151,12 +151,12 @@ int main() {
|
||||
// CHECK-NEXT: create NonTrivialTemplate
|
||||
// CHECK-NEXT: call
|
||||
// CHECK-NEXT: copy NonTrivialTemplate
|
||||
// CHECK-NEXT: copy NonTrivialTemplate
|
||||
// CHECK-NEXT: move NonTrivialTemplate
|
||||
// CHECK-NEXT: ~NonTrivialTemplate
|
||||
// CHECK-NEXT: DoneCall
|
||||
// CHECK-NEXT: copy NonTrivialTemplate
|
||||
// CHECK-NEXT: ~NonTrivialTemplate
|
||||
// CHECK-NEXT: copy NonTrivialTemplate
|
||||
// CHECK-NEXT: move NonTrivialTemplate
|
||||
// CHECK-NEXT: ~NonTrivialTemplate
|
||||
// CHECK-NEXT: ~NonTrivialTemplate
|
||||
// CHECK-NEXT: ~NonTrivialTemplate
|
||||
|
||||
Reference in New Issue
Block a user