From: Samuel Antao Date: Wed, 22 Jul 2015 16:02:46 +0000 (+0000) Subject: [OpenMP] Make target data directive generate unexpected directive diagnostic. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9658f78e18a06351f29f337db6f61a8606f59ee7;p=clang [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 --- diff --git a/lib/Parse/ParseOpenMP.cpp b/lib/Parse/ParseOpenMP.cpp index 533d8db6c5..2234f1396d 100644 --- a/lib/Parse/ParseOpenMP.cpp +++ b/lib/Parse/ParseOpenMP.cpp @@ -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();