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

via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 23 02:19:55 PDT 2025


ShashwathiNavada wrote:

> 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.

@efriedma-quic Thank you! I've updated the patch to emit iterator variable using the existing global emission logic, similar to how it's done for declare target deferred variables. Let me know if this looks good.

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


More information about the llvm-commits mailing list