================
@@ -306,6 +316,11 @@ class SparcV9ABIInfo : public ABIInfo {
break;
}
}
+
+ // Zero-sized structs gets the inreg flag; they are treated specially.
+ unsigned Size = DL.getTypeSizeInBits(StrTy).getKnownMinValue();
----------------
s-barannikov wrote:
If you need to know if a struct is empty, use isEmptyRecord. Otherwise the
comments should say zero-sized.
An empty struct in C++ can have non-zero size.
https://github.com/llvm/llvm-project/pull/217065
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits