================
@@ -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
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to