[PATCH] [OPENMP] Do not emit references to original variables in 'private' clause.

John McCall rjmccall at gmail.com
Wed May 20 10:03:47 PDT 2015

Sema doesn't know much about the "shareds" structure, either.  To be sure, it builds it as part of building the CapturedStmt, but it's not like Sema creates MemberRefExprs that point into it whenever you refer to a captured variable.  It's not even like lambdas, where that struct type is visible in the enclosing AST.  It's purely an implementation detail.

It should be possible to have EmitDeclRefLValue just delegate to the current CapturedStmtInfo, and then the OpenMP implementations can map privates however they're implemented.



More information about the cfe-commits mailing list