summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGStmtOpenMP.cpp
diff options
context:
space:
mode:
authorMichael Wong <fraggamuffin@gmail.com>2015-08-07 16:16:36 +0000
committerMichael Wong <fraggamuffin@gmail.com>2015-08-07 16:16:36 +0000
commite710d5459ee7fc4ffac35e89651611b1498bb1d3 (patch)
treef588d60e0fc73c26fa8b9b65e74042d976236b45 /clang/lib/CodeGen/CGStmtOpenMP.cpp
parent827a40b94420680063477bef5dadf9e69c2140b2 (diff)
downloadbcm5719-llvm-e710d5459ee7fc4ffac35e89651611b1498bb1d3.tar.gz
bcm5719-llvm-e710d5459ee7fc4ffac35e89651611b1498bb1d3.zip
This patch commits OpenMP 4 target device clauses
This is committed on behalf of Kelvin Li http://reviews.llvm.org/D11469?id=31227 llvm-svn: 244325
Diffstat (limited to 'clang/lib/CodeGen/CGStmtOpenMP.cpp')
-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 fa915755268..d69040d16b7 100644
--- a/clang/lib/CodeGen/CGStmtOpenMP.cpp
+++ b/clang/lib/CodeGen/CGStmtOpenMP.cpp
@@ -2077,6 +2077,7 @@ static void EmitOMPAtomicExpr(CodeGenFunction &CGF, OpenMPClauseKind Kind,
case OMPC_threadprivate:
case OMPC_depend:
case OMPC_mergeable:
+ case OMPC_device:
llvm_unreachable("Clause is not allowed in 'omp atomic'.");
}
}
OpenPOWER on IntegriCloud