File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -3363,16 +3363,15 @@ void MicrosoftRecordLayoutBuilder::computeVtorDispSet(
33633363// / position information.
33643364const ASTRecordLayout &
33653365ASTContext::getASTRecordLayout (const RecordDecl *D) const {
3366- // These asserts test different things. A record has a definition
3367- // as soon as we begin to parse the definition. That definition is
3368- // not a complete definition (which is what isDefinition() tests)
3369- // until we *finish* parsing the definition.
3370-
33713366 if (D->hasExternalLexicalStorage () && !D->getDefinition ())
33723367 getExternalSource ()->CompleteType (const_cast <RecordDecl*>(D));
33733368 // Complete the redecl chain (if necessary).
33743369 (void )D->getMostRecentDecl ();
33753370
3371+ // These asserts test different things. A record has a definition
3372+ // as soon as we begin to parse the definition. That definition is
3373+ // not a complete definition (which is what isCompleteDefinition() tests)
3374+ // until we *finish* parsing the definition.
33763375 D = D->getDefinition ();
33773376 assert (D && " Cannot get layout of forward declarations!" );
33783377 assert (!D->isInvalidDecl () && " Cannot get layout of invalid decl!" );
You can’t perform that action at this time.
0 commit comments