ABataev added a comment. In https://reviews.llvm.org/D42168#978689, @Hahnfeld wrote:
> In https://reviews.llvm.org/D42168#978634, @ABataev wrote: > > > 1. Please, mark the record as packed. > > > Where and how do I need to do this? I found that `PackedAttr` is checked on > `FieldDecl`s but I'm not sure if we go through that code path and how I could > add it... I think it is applied to structure. You can do it in `CGOpenMPRuntime::getTgtOffloadEntryQTy`, after the `RD->completeDefinition();` statement. Use `RD->addAttr(PackedAttr::CreateImplicit(C));` Repository: rC Clang https://reviews.llvm.org/D42168 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits