forked from OSchip/llvm-project
[OpenMP] Make target data directive generate unexpected directive diagnostic.
llvm-svn: 242906
This commit is contained in:
parent
0213a4756e
commit
5b0688edfd
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue