================ @@ -7756,6 +7756,8 @@ void Sema::CheckAsmLabel(Scope *S, Expr *E, StorageClass SC, StringLiteral *SE = cast<StringLiteral>(E); StringRef Label = SE->getString(); QualType R = TInfo->getType(); + if (R->isIncompleteType()) + return; ---------------- ojhunt wrote:
I initially did a requires complete type guard here, but realized that that necessarily had to occur somewhere else. The irksome thing here is that I'm having to check for an incomplete type rather than an invalid decl, but I guess that goes with diagnosing other bugs in the decl. https://github.com/llvm/llvm-project/pull/219746 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
