[PATCH] D86660: Modifying ImportDeclContext(...) to ensure that we also handle the case when the FieldDecl is an ArrayType whose ElementType is a RecordDecl
Pavel Labath via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 27 00:33:43 PDT 2020
labath added inline comments.
================
Comment at: clang/lib/AST/ASTImporter.cpp:1755-1759
+ QualType FromTy = ArrayFrom->getElementType();
+ QualType ToTy = ArrayTo->getElementType();
+
+ FromRecordDecl = FromTy->getAsRecordDecl();
+ ToRecordDecl = ToTy->getAsRecordDecl();
----------------
What about 2- or n-dimensional arrays?
================
Comment at: lldb/test/API/commands/expression/codegen-crash-import-def-arraytype-element/main.cpp:22-27
+ union {
+ struct {
+ unsigned char *_s;
+ } t;
+ char *tt[1];
+ } U;
----------------
What's the significance of this union?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D86660/new/
https://reviews.llvm.org/D86660
More information about the cfe-commits
mailing list