[clang] [CIR] Upstream support for operator assign (PR #145979)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 27 06:32:00 PDT 2025


================
@@ -258,6 +258,30 @@ void CIRGenFunction::emitDelegateCXXConstructorCall(
                          /*Delegating=*/true, thisAddr, delegateArgs, loc);
 }
 
+void CIRGenFunction::emitImplicitAssignmentOperatorBody(FunctionArgList &args) {
+  const auto *assignOp = cast<CXXMethodDecl>(curGD.getDecl());
----------------
erichkeane wrote:

`assert(assignOp->isCopyAssignmentOperator() || assignOp->isMoveAssignmentOperator());`

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


More information about the cfe-commits mailing list