diff --git a/mlir/lib/Conversion/PtrToLLVM/PtrToLLVM.cpp b/mlir/lib/Conversion/PtrToLLVM/PtrToLLVM.cpp index 29140e63f3af..86106b27a2bd 100644 --- a/mlir/lib/Conversion/PtrToLLVM/PtrToLLVM.cpp +++ b/mlir/lib/Conversion/PtrToLLVM/PtrToLLVM.cpp @@ -246,8 +246,9 @@ LogicalResult GetMetadataOpConversion::matchAndRewrite( Value sV = LLVM::UndefOp::create(rewriter, loc, *mdTy); // First element is the allocated pointer. - sV = LLVM::InsertValueOp::create( - rewriter, loc, sV, descriptor.allocatedPtr(rewriter, loc), int64_t{0}); + SmallVector pos{0}; + sV = LLVM::InsertValueOp::create(rewriter, loc, sV, + descriptor.allocatedPtr(rewriter, loc), pos); // Track the current field index. unsigned fieldIdx = 1;