HomePhabricator

[OPENMP5.0]Diagnose global variables in lambda not marked as declare target.

Authored by ABataev on Aug 16 2019, 1:15 PM.

Description

[OPENMP5.0]Diagnose global variables in lambda not marked as declare target.

According to OpenMP 5.0, if a lambda declaration and definition appears between a declare target directive and the matching end declare target directive, all variables that are captured by the lambda expression must also appear in a to clause.

llvm-svn: 369146

Details