[clang] [llvm] Trying to fix undefined symbol error caused by iterator variable (PR #141507)

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Wed May 28 09:22:30 PDT 2025


https://github.com/efriedma-quic commented:

To expand on what I mean...

For variables which have a strong definition, we usually don't emit them lazily: there's some statement or declaration which is the "definition" point, and we emit the definition as part of visiting that statement or declaration.  This ensures consistency: we consistently emit a definition for things that need a definition.

For variables where the definition isn't necessarily needed, we also have a mechanism for lazily defining them; see DeferredDecls.

I don't want to invent a new way of emitting variable definitions specifically for OpenMP.

https://github.com/llvm/llvm-project/pull/141507


More information about the cfe-commits mailing list