[clang] [Clang] fix crash in codegen caused by deferred asm diagnostics under -fopenmp (PR #147163)
Eli Friedman via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 10 08:52:45 PDT 2025
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
More information about the cfe-commits
mailing list