]> granicus.if.org Git - clang/commit
[ASTImporter] Copy Argument Passing Restrictions setting when importing a CXXRecordDe...
authorShafik Yaghmour <syaghmour@apple.com>
Fri, 26 Apr 2019 18:51:28 +0000 (18:51 +0000)
committerShafik Yaghmour <syaghmour@apple.com>
Fri, 26 Apr 2019 18:51:28 +0000 (18:51 +0000)
commitf894ac01dc3f4a29fa6fbaf44518c5de98c848b4
tree6a8bcb67dd17b176b31fe6fcbf27dd3ed784eaa7
parent276b4e7f86499fe84998342d76d0db521ca7f0aa
[ASTImporter] Copy Argument Passing Restrictions setting when importing a CXXRecordDecl definition

Summary:
For a CXXRecordDecl the RecordDeclBits are stored in the DeclContext. Currently when we import the definition of a CXXRecordDecl via the ASTImporter we do not copy over this data.
This change will add support for copying the ArgPassingRestrictions from RecordDeclBits to fix an LLDB expression parsing bug where we would set it to not pass in registers.
Note, we did not copy over any other of the RecordDeclBits since we don't have tests for those. We know that copying over LoadedFieldsFromExternalStorage would be a error and that may be the case for others as well.

The companion LLDB review: https://reviews.llvm.org/D61146

Differential Review: https://reviews.llvm.org/D61140

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@359338 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ASTImporter.cpp
test/Import/cxx-record-flags/Inputs/F.cpp [new file with mode: 0644]
test/Import/cxx-record-flags/test.cpp [new file with mode: 0644]