[clang] [CIR] Upstream support for emitting ignored statements (PR #130869)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 12 12:03:53 PDT 2025
================
@@ -154,6 +154,12 @@ class CIRGenFunction : public CIRGenTypeCache {
const clang::LangOptions &getLangOpts() const { return cgm.getLangOpts(); }
+ /// Emit code to compute the specified expression which can have any type. The
+ /// result is returned as an RValue struct. If this is an aggregate
+ /// expression, the aggloc/agglocvolatile arguments indicate where the result
+ /// should be returned.
+ RValue emitAnyExpr(const clang::Expr *e, bool ignoreResult = false);
----------------
erichkeane wrote:
I'd vastly prefer this not have a default argument
https://github.com/llvm/llvm-project/pull/130869
More information about the cfe-commits
mailing list