efriedma-quic wrote:

> Deferred errors only, though, right?

Deferred unrecoverable errors, yes.

> Do we know if there are any cases where we defer the diagnostic because we 
> may later decide it's not an error and thus codegen would be fine? 

As far as I can tell, targetDiag() works on a per-function basis: if a function 
is marked, that function is invalid.  We can't recover later.  The point is 
just that we want to allow inline functions containing certain invalid 
constructs if they aren't actually used in the current translation unit.

https://github.com/llvm/llvm-project/pull/147163
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to