[OPENMP] issue error messages for multiple teams contructs in a target construct
authorKelvin Li <kkwli0@gmail.com>
Tue, 5 Feb 2019 16:43:00 +0000 (16:43 +0000)
committerKelvin Li <kkwli0@gmail.com>
Tue, 5 Feb 2019 16:43:00 +0000 (16:43 +0000)
commit620ba6035ee74ac897e40d6629fe794984e0e5f7
treeb18ce285ef544e8c8b8535ef19d0f7d6532b94f1
parenta3ec627a1c60ead93207cbd147b6faaf028231bd
[OPENMP] issue error messages for multiple teams contructs in a target construct

The fix is to issue error messages if there are more than one
teams construct inside a target constructs.

#pragma omp target
{
  #pragma omp teams
  {  ...  }

  #pragma omp teams
  { ... }
}

llvm-svn: 353186
clang/lib/Sema/SemaOpenMP.cpp
clang/test/OpenMP/nesting_of_regions.cpp