@@ -35,8 +35,8 @@ CIRGenFunction::emitAutoVarAlloca(const VarDecl &d,
3535 getContext ().getLangOpts ().ElideConstructors && d.isNRVOVariable ();
3636
3737 CIRGenFunction::AutoVarEmission emission (d);
38- emission.IsEscapingByRef = d.isEscapingByref ();
39- if (emission.IsEscapingByRef )
38+ emission.isEscapingByRef = d.isEscapingByref ();
39+ if (emission.isEscapingByRef )
4040 cgm.errorNYI (d.getSourceRange (),
4141 " emitAutoVarDecl: decl escaping by reference" );
4242
@@ -78,7 +78,7 @@ CIRGenFunction::emitAutoVarAlloca(const VarDecl &d,
7878 alignment);
7979 }
8080
81- emission.Addr = address;
81+ emission.addr = address;
8282 setAddrOfLocalVar (&d, address);
8383
8484 return emission;
@@ -101,13 +101,13 @@ bool CIRGenFunction::isTrivialInitializer(const Expr *init) {
101101
102102void CIRGenFunction::emitAutoVarInit (
103103 const CIRGenFunction::AutoVarEmission &emission) {
104- assert (emission.Variable && " emission was not valid!" );
104+ assert (emission.variable && " emission was not valid!" );
105105
106106 // If this was emitted as a global constant, we're done.
107107 if (emission.wasEmittedAsGlobal ())
108108 return ;
109109
110- const VarDecl &d = *emission.Variable ;
110+ const VarDecl &d = *emission.variable ;
111111
112112 QualType type = d.getType ();
113113
@@ -124,7 +124,7 @@ void CIRGenFunction::emitAutoVarInit(
124124 return ;
125125 }
126126
127- const Address addr = emission.Addr ;
127+ const Address addr = emission.addr ;
128128
129129 // Check whether this is a byref variable that's potentially
130130 // captured and moved by its own initializer. If so, we'll need to
@@ -153,7 +153,7 @@ void CIRGenFunction::emitAutoVarInit(
153153 }
154154
155155 mlir::Attribute constant;
156- if (emission.IsConstantAggregate ||
156+ if (emission.isConstantAggregate ||
157157 d.mightBeUsableInConstantExpressions (getContext ())) {
158158 // FIXME: Differently from LLVM we try not to emit / lower too much
159159 // here for CIR since we are interested in seeing the ctor in some
@@ -196,7 +196,7 @@ void CIRGenFunction::emitAutoVarInit(
196196 // FIXME(cir): migrate most of this file to use mlir::TypedAttr directly.
197197 auto typedConstant = mlir::dyn_cast<mlir::TypedAttr>(constant);
198198 assert (typedConstant && " expected typed attribute" );
199- if (!emission.IsConstantAggregate ) {
199+ if (!emission.isConstantAggregate ) {
200200 // For simple scalar/complex initialization, store the value directly.
201201 LValue lv = makeAddrLValue (addr, type);
202202 assert (init && " expected initializer" );
@@ -209,7 +209,7 @@ void CIRGenFunction::emitAutoVarInit(
209209
210210void CIRGenFunction::emitAutoVarCleanups (
211211 const CIRGenFunction::AutoVarEmission &emission) {
212- const VarDecl &d = *emission.Variable ;
212+ const VarDecl &d = *emission.variable ;
213213
214214 // Check the type for a cleanup.
215215 if (QualType::DestructionKind dtorKind = d.needsDestruction (getContext ()))
@@ -821,7 +821,7 @@ void CIRGenFunction::emitAutoVarTypeCleanup(
821821 // original stack object, not the possibly forwarded object.
822822 Address addr = emission.getObjectAddress (*this );
823823
824- const VarDecl *var = emission.Variable ;
824+ const VarDecl *var = emission.variable ;
825825 QualType type = var->getType ();
826826
827827 CleanupKind cleanupKind = NormalAndEHCleanup;
@@ -834,7 +834,7 @@ void CIRGenFunction::emitAutoVarTypeCleanup(
834834 case QualType::DK_cxx_destructor:
835835 // If there's an NRVO flag on the emission, we need a different
836836 // cleanup.
837- if (emission.NRVOFlag ) {
837+ if (emission.nrvoFlag ) {
838838 cgm.errorNYI (var->getSourceRange (), " emitAutoVarTypeCleanup: NRVO" );
839839 return ;
840840 }
0 commit comments