[Mlir-commits] [mlir] 8c948b1 - Fix -Wsign-compare warning (NFC)

Mehdi Amini llvmlistbot at llvm.org
Wed Jun 2 10:29:04 PDT 2021


Author: Mehdi Amini
Date: 2021-06-02T17:28:57Z
New Revision: 8c948b18e9d899a36e819a282ce60f196ab73376

URL: https://github.com/llvm/llvm-project/commit/8c948b18e9d899a36e819a282ce60f196ab73376
DIFF: https://github.com/llvm/llvm-project/commit/8c948b18e9d899a36e819a282ce60f196ab73376.diff

LOG: Fix -Wsign-compare warning (NFC)

Added: 
    

Modified: 
    mlir/lib/Dialect/Linalg/Transforms/Promotion.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/Linalg/Transforms/Promotion.cpp b/mlir/lib/Dialect/Linalg/Transforms/Promotion.cpp
index bbf7d2dd20f1..f0a7a859de64 100644
--- a/mlir/lib/Dialect/Linalg/Transforms/Promotion.cpp
+++ b/mlir/lib/Dialect/Linalg/Transforms/Promotion.cpp
@@ -329,7 +329,7 @@ promoteSubViews(ImplicitLocOpBuilder &b, LinalgOp op,
       else
         opViews.push_back(
             (*promotedBuffersAndViews)[view.index()].partialLocalView);
-      if (view.index() >= op.getNumInputs())
+      if (static_cast<int64_t>(view.index()) >= op.getNumInputs())
         writebackViews.emplace_back(std::make_pair(
             view.value(),
             (*promotedBuffersAndViews)[view.index()].partialLocalView));


        


More information about the Mlir-commits mailing list