[llvm] Fixed Windows build warnings (PR #68978)

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 16 08:00:51 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 llvm-commits mailing list