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

Samuel Antao sfantao at us.ibm.com
Wed Jul 22 09:02:47 PDT 2015


Author: sfantao
Date: Wed Jul 22 11:02:46 2015
New Revision: 242906

URL: http://llvm.org/viewvc/llvm-project?rev=242906&view=rev
Log:
[OpenMP] Make target data directive generate unexpected directive diagnostic.


Modified:
    cfe/trunk/lib/Parse/ParseOpenMP.cpp

Modified: cfe/trunk/lib/Parse/ParseOpenMP.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseOpenMP.cpp?rev=242906&r1=242905&r2=242906&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/ParseOpenMP.cpp (original)
+++ cfe/trunk/lib/Parse/ParseOpenMP.cpp Wed Jul 22 11:02:46 2015
@@ -136,11 +136,10 @@ Parser::DeclGroupPtrTy Parser::ParseOpen
   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();





More information about the cfe-commits mailing list