[clang] [CIR] Upstream CompoundLiteralExpr for Scalar (PR #148943)

Bruno Cardoso Lopes via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 17 11:38:50 PDT 2025


================
@@ -1053,6 +1053,68 @@ LValue CIRGenFunction::emitMemberExpr(const MemberExpr *e) {
   llvm_unreachable("Unhandled member declaration!");
 }
 
+/// Evaluate an expression into a given memory location.
+void CIRGenFunction::emitAnyExprToMem(const Expr *e, Address location,
+                                      Qualifiers quals, bool isInit) {
+  // FIXME: This function should take an LValue as an argument.
+  switch (getEvaluationKind(e->getType())) {
+  case cir::TEK_Complex: {
+    RValue rv = RValue::get(emitComplexExpr(e));
----------------
bcardosolopes wrote:

+1

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


More information about the cfe-commits mailing list