summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorPatrick Lyster <Patrick.lyster@ibm.com>2018-10-01 13:47:43 +0000
committerPatrick Lyster <Patrick.lyster@ibm.com>2018-10-01 13:47:43 +0000
commit4a370b9f63daf43a216eb29defa1489e3caff217 (patch)
tree06ec1c437860c6248295eb26a90ed9b1ee6d1002 /clang/lib/CodeGen
parent64011593dcd571206637ad0996841aa7b93f1a88 (diff)
downloadbcm5719-llvm-4a370b9f63daf43a216eb29defa1489e3caff217.tar.gz
bcm5719-llvm-4a370b9f63daf43a216eb29defa1489e3caff217.zip
Add support for unified_shared_memory clause on requires directive
llvm-svn: 343472
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGStmtOpenMP.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGStmtOpenMP.cpp b/clang/lib/CodeGen/CGStmtOpenMP.cpp
index 79ffa7c8e94..937b59f506a 100644
--- a/clang/lib/CodeGen/CGStmtOpenMP.cpp
+++ b/clang/lib/CodeGen/CGStmtOpenMP.cpp
@@ -3912,6 +3912,7 @@ static void emitOMPAtomicExpr(CodeGenFunction &CGF, OpenMPClauseKind Kind,
case OMPC_use_device_ptr:
case OMPC_is_device_ptr:
case OMPC_unified_address:
+ case OMP_unified_shared_memory:
llvm_unreachable("Clause is not allowed in 'omp atomic'.");
}
}
OpenPOWER on IntegriCloud