================ @@ -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()); ---------------- andykaylor wrote:
Admittedly, I know very little about printing policy handling, but just using whatever the context gives us here makes me nervous. Does the format of the string matter? Is it just used for diagnostics? https://github.com/llvm/llvm-project/pull/142998 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits