================ @@ -4570,7 +4570,8 @@ ExprResult Sema::BuildAtomicExpr(SourceRange CallRange, SourceRange ExprRange, } // Pointer to object of size zero is not allowed. - if (Context.getTypeInfoInChars(AtomTy).Width.isZero()) { + if (!AtomTy->isIncompleteType() && ---------------- hazohelet wrote:
The current diagnostic message only says we need trivially-copyable type here, and the `RequireCompleteType` version would say we need complete type here and it sounds more understandable to me. https://github.com/llvm/llvm-project/pull/96374 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits