[clang] [OpenACC][CIR] Implement member exprs for 'copy' lowering (PR #142998)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 5 14:46:54 PDT 2025


================
@@ -226,6 +228,10 @@ class OpenACCClauseCIREmitter final
     mlir::Location exprLoc = cgf.cgm.getLoc(curVarExpr->getBeginLoc());
     llvm::SmallVector<mlir::Value> bounds;
 
+    std::string exprString;
+    llvm::raw_string_ostream os(exprString);
+    e->printPretty(os, nullptr, cgf.getContext().getPrintingPolicy());
----------------
erichkeane wrote:

The printing policy in the ASTContext/Sema is based on the command line arguments, so it is at least 'as configured' by the user.  And yes, this is for diagnostic purposes only I'm told, so it has no lookup/etc or anything expected of it.

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


More information about the cfe-commits mailing list