[clang] [CIR][OpenACC] Implement pointer/array recipe destructors (PR #160189)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 24 06:12:14 PDT 2025


================
@@ -1715,8 +1715,15 @@ class CIRGenFunction : public CIRGenTypeCache {
     mlir::Location beginLoc;
     mlir::Value varValue;
     std::string name;
+    // The type of the original variable reference: that is, after 'bounds' have
+    // removed pointers/array types/etc. So in the case of int arr[5], and a
+    // private(arr[1]), 'origType' is 'int', but 'baseType' is 'int[5]'.
+    QualType origType;
----------------
erichkeane wrote:

It isn't QUITE element type (since you don't have to be 'fully decended' with bounds), but yes, it is the original type of the expression that the user typed, after accessing the bounds they typed.

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


More information about the cfe-commits mailing list