================
@@ -463,8 +463,17 @@ static LValue emitGlobalVarDeclLValue(CIRGenFunction &cgf,
const Expr *e,
// Check if the variable is marked as declare target with link clause in
// device codegen.
- if (cgf.getLangOpts().OpenMP)
- cgf.cgm.errorNYI(e->getSourceRange(), "emitGlobalVarDeclLValue: OpenMP");
+ if (cgf.getLangOpts().OpenMPIsTargetDevice) {
+ std::optional<OMPDeclareTargetDeclAttr::MapTypeTy> res =
----------------
aobolensk wrote:
reverted here
https://github.com/llvm/llvm-project/pull/233671
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits