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