From: Warren Hunt Date: Thu, 20 Feb 2014 20:14:29 +0000 (+0000) Subject: Enable MSRecordLayout in the presence of external sources. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9bce94e59ca9b2afb119f11833227ca6a4eda0ef;p=clang Enable MSRecordLayout in the presence of external sources. External sources shouldn't prevent the layout engine from using MSLayout. If lldb were to support debugging in microsoft mode, some code will need to be added to MSRecordLayoutBuilder to handel external layouts. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201810 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/RecordLayoutBuilder.cpp b/lib/AST/RecordLayoutBuilder.cpp index 139ee60ef8..dc3efe99da 100644 --- a/lib/AST/RecordLayoutBuilder.cpp +++ b/lib/AST/RecordLayoutBuilder.cpp @@ -2892,7 +2892,7 @@ ASTContext::getASTRecordLayout(const RecordDecl *D) const { const ASTRecordLayout *NewEntry = 0; - if (isMsLayout(D) && !D->getASTContext().getExternalSource()) { + if (isMsLayout(D)) { NewEntry = BuildMicrosoftASTRecordLayout(D); } else if (const CXXRecordDecl *RD = dyn_cast(D)) { EmptySubobjectMap EmptySubobjects(*this, RD);