rnk added inline comments.
================ Comment at: lib/AST/Type.cpp:2226 + Context.getFieldOffset(*Record->field_begin())); + for (const auto *Field : Record->fields()) { + if (!Field->getType().hasUniqueObjectRepresentations(Context)) ---------------- What about base classes? I think that's where the padding detection is going to get wacky. =/ https://reviews.llvm.org/D39064 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits