Skip to content
Snippets Groups Projects
Commit 9658f78e authored by Samuel Antao's avatar Samuel Antao
Browse files

[OpenMP] Make target data directive generate unexpected directive diagnostic.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@242906 91177308-0d34-0410-b5e6-96231b3b80d8
parent fe716e55
No related branches found
No related tags found
No related merge requests found
......@@ -136,11 +136,10 @@ Parser::DeclGroupPtrTy Parser::ParseOpenMPDeclarativeDirective() {
case OMPD_teams:
case OMPD_cancellation_point:
case OMPD_cancel:
case OMPD_target_data:
Diag(Tok, diag::err_omp_unexpected_directive)
<< getOpenMPDirectiveName(DKind);
break;
case OMPD_target_data:
break;
}
SkipUntil(tok::annot_pragma_openmp_end);
return DeclGroupPtrTy();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment