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

llvm-svn: 242906
This commit is contained in:
Samuel Antao 2015-07-22 16:02:46 +00:00
parent 0213a4756e
commit 5b0688edfd
1 changed files with 1 additions and 2 deletions

View File

@ -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();