================ @@ -55,14 +104,19 @@ struct ConvertCIRToLLVMPass StringRef getArgument() const override { return "cir-flat-to-llvm"; } }; +/// Replace CIR global with a region initialized LLVM global and update +/// insertion point to the end of the initializer block. + mlir::LogicalResult CIRToLLVMGlobalOpLowering::matchAndRewrite( cir::GlobalOp op, OpAdaptor adaptor, mlir::ConversionPatternRewriter &rewriter) const { // Fetch required values to create LLVM op. const mlir::Type cirSymType = op.getSymType(); + const auto loc = op.getLoc(); ---------------- erichkeane wrote:
I don't believe this passes our `use of auto` policy here. Unless the type is named `Loc` :) EDIT: Looked, it isnt: ```suggestion const Location loc = op.getLoc(); ``` https://github.com/llvm/llvm-project/pull/125619 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits