================
@@ -21537,6 +21537,42 @@ Sema::FunctionEmissionStatus
Sema::getEmissionStatus(const FunctionDecl *FD,
if (IsEmittedForExternalSymbol())
return FunctionEmissionStatus::Emitted;
+
+ // CodeGen also emits a function regardless of its uses if it is forced to,
+ // so its deferred diagnostics must not wait for a use.
+ auto IsForcedToBeEmitted = [this, FD, Final]() {
----------------
steffenlarsen wrote:
I'll see what I can do!
https://github.com/llvm/llvm-project/pull/229008
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits