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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits