[Mlir-commits] [mlir] Fixed Windows build warnings (PR #68978)
David Blaikie
llvmlistbot at llvm.org
Mon Oct 16 08:00:49 PDT 2023
================
@@ -498,7 +498,7 @@ LogicalResult GPUPrintfOpToVPrintfLowering::matchAndRewrite(
for (auto [index, arg] : llvm::enumerate(args)) {
Value ptr = rewriter.create<LLVM::GEPOp>(
loc, LLVM::LLVMPointerType::get(arg.getType()), tempAlloc,
- ArrayRef<LLVM::GEPArg>{0, index});
+ ArrayRef<LLVM::GEPArg>{0, static_cast<int32_t>(index)});
----------------
dwblaikie wrote:
Similarly - if the warning isn't catching real bugs, maybe it's not worth keeping enabled?
https://github.com/llvm/llvm-project/pull/68978
More information about the Mlir-commits
mailing list