[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


================
@@ -165,6 +165,34 @@ LValue CIRGenFunction::emitDeclRefLValue(const DeclRefExpr *e) {
   return LValue();
 }
 
+/// Emit code to compute the specified expression which
+/// can have any type.  The result is returned as an RValue struct.
+RValue CIRGenFunction::emitAnyExpr(const Expr *e, bool ignoreResult) {
----------------
erichkeane wrote:

is `ignoreResult` used anywhere?    Might need a cast-to-void here to prevent diagnostics.

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


More information about the cfe-commits mailing list