[clang] Implement [[msvc::no_unique_address]] (PR #65675)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 12 12:58:14 PDT 2023
================
@@ -4505,6 +4505,14 @@ bool FieldDecl::isZeroSize(const ASTContext &Ctx) const {
if (!CXXRD->isEmpty())
return false;
+ // MS ABI: nonzero if class type with class type fields
----------------
erichkeane wrote:
Does any differentiation need to be made between the spellings on 4489? Additionally, can you elaborate on the comment here? How can we look at the fields of `CXXRD` if it is empty?
https://github.com/llvm/llvm-project/pull/65675
More information about the cfe-commits
mailing list