================
@@ -2134,79 +2134,6 @@ RValue CIRGenFunction::emitCXXMemberCallExpr(const
CXXMemberCallExpr *ce,
ce, md, returnValue, hasQualifier, qualifier, isArrow, base);
}
-void CIRGenFunction::emitCXXConstructExpr(const CXXConstructExpr *e,
- AggValueSlot dest) {
- assert(!dest.isIgnored() && "Must have a destination!");
- const CXXConstructorDecl *cd = e->getConstructor();
-
- // If we require zero initialization before (or instead of) calling the
- // constructor, as can be the case with a non-user-provided default
- // constructor, emit the zero initialization now, unless destination is
- // already zeroed.
- if (e->requiresZeroInitialization() && !dest.isZeroed()) {
- switch (e->getConstructionKind()) {
- case CXXConstructionKind::Delegating:
- case CXXConstructionKind::Complete:
- emitNullInitialization(getLoc(e->getSourceRange()), dest.getAddress(),
- e->getType());
- break;
- case CXXConstructionKind::VirtualBase:
- case CXXConstructionKind::NonVirtualBase:
- cgm.errorNYI(e->getSourceRange(),
- "emitCXXConstructExpr: base requires initialization");
----------------
andykaylor wrote:
This is the only part of this function changed in this PR. The function is
being moved to CIRGenExprCXX.cpp.
https://github.com/llvm/llvm-project/pull/167023
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits