diff options
author | Warren Hunt <whunt@google.com> | 2014-02-20 20:14:29 +0000 |
---|---|---|
committer | Warren Hunt <whunt@google.com> | 2014-02-20 20:14:29 +0000 |
commit | 2350c867cb09c114c0c82b9796959dac4f0ab3bc (patch) | |
tree | abe16e9417d60b8b88eff01c5f42db5ae30fc2cc /clang/lib/AST/RecordLayoutBuilder.cpp | |
parent | 4b54f20e8027325ce522933c77ded92db965cab2 (diff) | |
download | bcm5719-llvm-2350c867cb09c114c0c82b9796959dac4f0ab3bc.tar.gz bcm5719-llvm-2350c867cb09c114c0c82b9796959dac4f0ab3bc.zip |
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.
llvm-svn: 201810
Diffstat (limited to 'clang/lib/AST/RecordLayoutBuilder.cpp')
-rw-r--r-- | clang/lib/AST/RecordLayoutBuilder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/RecordLayoutBuilder.cpp b/clang/lib/AST/RecordLayoutBuilder.cpp index 139ee60ef80..dc3efe99da3 100644 --- a/clang/lib/AST/RecordLayoutBuilder.cpp +++ b/clang/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<CXXRecordDecl>(D)) { EmptySubobjectMap EmptySubobjects(*this, RD); |