File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -3539,7 +3539,7 @@ namespace {
35393539 decl->needsImplicitDefaultConstructor ()) {
35403540 clang::CXXConstructorDecl *ctor =
35413541 clangSema.DeclareImplicitDefaultConstructor (
3542- const_cast <clang::CXXRecordDecl *>(decl));
3542+ const_cast <clang::CXXRecordDecl *>(decl-> getDefinition () ));
35433543 if (!ctor->isDeleted ())
35443544 clangSema.DefineImplicitDefaultConstructor (clang::SourceLocation (),
35453545 ctor);
Original file line number Diff line number Diff line change 5858
5959// CHECK: struct HasForwardDeclaredNestedType {
6060// CHECK: struct NormalSubType {
61+ // CHECK: init()
6162// CHECK: }
6263// CHECK: struct ForwardDeclaredType {
64+ // CHECK: init()
6365// CHECK: }
66+ // CHECK: init()
6467// CHECK: }
You can’t perform that action at this time.
0 commit comments