mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-11 02:16:50 +00:00
Revert "Enable MSRecordLayout in the presence of external sources."
This reverts commit r201810. It was failing these tests on my workstation: Clang :: CodeGen/override-layout.c Clang :: CodeGenCXX/override-layout.cpp Clang :: PCH/check-deserializations.cpp llvm-svn: 201823
This commit is contained in:
parent
75080ff25d
commit
af1465cef5
@ -2892,7 +2892,7 @@ ASTContext::getASTRecordLayout(const RecordDecl *D) const {
|
||||
|
||||
const ASTRecordLayout *NewEntry = 0;
|
||||
|
||||
if (isMsLayout(D)) {
|
||||
if (isMsLayout(D) && !D->getASTContext().getExternalSource()) {
|
||||
NewEntry = BuildMicrosoftASTRecordLayout(D);
|
||||
} else if (const CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(D)) {
|
||||
EmptySubobjectMap EmptySubobjects(*this, RD);
|
||||
|
Loading…
x
Reference in New Issue
Block a user