Skip to content

Commit 69b6356

Browse files
mmhaerichkeane
andcommitted
Update clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
Co-authored-by: Erich Keane <[email protected]>
1 parent 6f6a938 commit 69b6356

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ mlir::LogicalResult CIRToLLVMCastOpLowering::matchAndRewrite(
298298
mlir::Type targetType = convertTy(ptrTy);
299299
mlir::Type elementTy = convertTypeForMemory(*getTypeConverter(), dataLayout,
300300
ptrTy.getPointee());
301-
auto offset = llvm::SmallVector<mlir::LLVM::GEPArg>{0};
301+
llvm::SmallVector<mlir::LLVM::GEPArg> offset{0};
302302
rewriter.replaceOpWithNewOp<mlir::LLVM::GEPOp>(
303303
castOp, targetType, elementTy, sourceValue, offset);
304304
break;

0 commit comments

Comments
 (0)