================
@@ -208,6 +233,10 @@ OpenACCDirectiveKind ParseOpenACCDirectiveKind(Parser &P) {
   // introspect on the spelling before then.
   if (FirstTok.isNot(tok::identifier)) {
     P.Diag(FirstTok, diag::err_acc_missing_directive);
+
+    if (!FirstTok.isAnnotation())
+      P.ConsumeAnyToken();
----------------
cor3ntin wrote:

I'm assuming that's for the end of pragma annotation. Shouldn't the test be 
more specific?

https://github.com/llvm/llvm-project/pull/75052
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to