[clang] [clang] Factor out OpenACC part of `Sema` (PR #84184)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 6 07:46:37 PST 2024


================
@@ -63,17 +67,17 @@ void Sema::ActOnOpenACCConstruct(OpenACCDirectiveKind K,
     // here as these constructs do not take any arguments.
     break;
   default:
-    Diag(StartLoc, diag::warn_acc_construct_unimplemented) << K;
+    Sema.Diag(StartLoc, diag::warn_acc_construct_unimplemented) << K;
----------------
erichkeane wrote:

I've seen this enough... I wonder if the 'sub' types should have a 'Diag' reference as well?  WDYT?

https://github.com/llvm/llvm-project/pull/84184


More information about the cfe-commits mailing list