[clang] [OpenACC][CIR] Lower 'num_workers' for parallel/kernels (PR #136578)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 21 11:57:48 PDT 2025


================
@@ -109,14 +126,15 @@ class OpenACCClauseCIREmitter final
   }
 
   void VisitDeviceTypeClause(const OpenACCDeviceTypeClause &clause) {
+    lastDeviceTypeClause = &clause;
----------------
erichkeane wrote:

Its owned by the AST, so its lifetime lasts until the AST is destroyed, which is after frontend codegen.

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


More information about the cfe-commits mailing list