[OpenMP] libomptarget: test correction for use with OpenMP 4.5

Differential Revision: https://reviews.llvm.org/D32562

Thanks to Sergey Dmitriev for submitting the patch.

llvm-svn: 301577
This commit is contained in:
George Rokos 2017-04-27 18:54:00 +00:00
parent 1353f9a48b
commit 7ec263672c
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@
int main(void) {
int isHost = -1;
#pragma omp target
#pragma omp target map(from: isHost)
{ isHost = omp_is_initial_device(); }
if (isHost < 0) {

View File

@ -9,7 +9,7 @@
int main(void) {
int isHost = 0;
#pragma omp target
#pragma omp target map(from: isHost)
{ isHost = omp_is_initial_device(); }
if (isHost < 0) {