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

Nikita Kudriavtsev via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 20 03:15:22 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)});
----------------
nikita-kud wrote:

will revert(or close PR)

https://github.com/llvm/llvm-project/pull/68978


More information about the llvm-commits mailing list