ShashwathiNavada wrote:

> We need to call HandleTopLevelDecl for every translation-unit-level variable 
> we create. ActOnOMPIteratorExpr creates a translation-unit-level variable for 
> every top-level iterator expression. But we're only calling 
> HandleTopLevelDecl for some of them: specifically, the ones where 
> getDeclareMapperVarRef() is true. What happens to the other ones?

I see your point. I noticed that `ActOnOMPIteratorExpr` gets called for 
affinity, depend, and map clauses. Out of these, only map seems to appear at 
global scope. That probably explains why we don’t call HandleTopLevelDecl here. 
How do you think we should proceed from here?

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

Reply via email to