@@ -80,7 +80,7 @@ CIRGenFunction::emitAutoVarAlloca(const VarDecl &d,
8080 assert (!cir::MissingFeatures::openMP ());
8181 if (!didCallStackSave) {
8282 // Save the stack.
83- auto defaultTy = AllocaInt8PtrTy;
83+ cir::PointerType defaultTy = AllocaInt8PtrTy;
8484 CharUnits align = CharUnits::fromQuantity (
8585 cgm.getDataLayout ().getAlignment (defaultTy, false ));
8686 Address stack = createTempAlloca (defaultTy, align, loc, " saved_stack" );
@@ -96,7 +96,7 @@ CIRGenFunction::emitAutoVarAlloca(const VarDecl &d,
9696 pushStackRestore (NormalCleanup, stack);
9797 }
9898
99- auto vlaSize = getVLASize (ty);
99+ VlaSizePair vlaSize = getVLASize (ty);
100100 mlir::Type memTy = convertTypeForMem (vlaSize.type );
101101
102102 // Allocate memory for the array.
@@ -733,7 +733,7 @@ struct CallStackRestore final : EHScopeStack::Cleanup {
733733 Address stack;
734734 CallStackRestore (Address stack) : stack(stack) {}
735735 void emit (CIRGenFunction &cgf) override {
736- auto loc = stack.getPointer ().getLoc ();
736+ mlir::Location loc = stack.getPointer ().getLoc ();
737737 mlir::Value v = cgf.getBuilder ().createLoad (loc, stack);
738738 cgf.getBuilder ().createStackRestore (loc, v);
739739 }
0 commit comments