================
@@ -1638,7 +1638,7 @@ static RegionOffset calculateOffset(const MemRegion *R) {
}
const CXXRecordDecl *Child = Ty->getAsCXXRecordDecl();
- if (!Child) {
+ if (!Child || !ASTContext::hasLayout(Child)) {
----------------
tbaederr wrote:
No, it immediately does `D = D->getDefinition()`, so `D` can't be null.
https://github.com/llvm/llvm-project/pull/216541
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits