[Mlir-commits] [mlir] fd0e8b4 - [mlir][NFC] Fix warning for mismatched sign comparison.
River Riddle
llvmlistbot at llvm.org
Wed Feb 19 10:40:50 PST 2020
Author: River Riddle
Date: 2020-02-19T10:40:41-08:00
New Revision: fd0e8b4c0ca78880bed974a5a14b7cd16a89d91c
URL: https://github.com/llvm/llvm-project/commit/fd0e8b4c0ca78880bed974a5a14b7cd16a89d91c
DIFF: https://github.com/llvm/llvm-project/commit/fd0e8b4c0ca78880bed974a5a14b7cd16a89d91c.diff
LOG: [mlir][NFC] Fix warning for mismatched sign comparison.
Added:
Modified:
mlir/include/mlir/IR/OperationSupport.h
Removed:
################################################################################
diff --git a/mlir/include/mlir/IR/OperationSupport.h b/mlir/include/mlir/IR/OperationSupport.h
index a7999607d28c..b0c97e2dc1a4 100644
--- a/mlir/include/mlir/IR/OperationSupport.h
+++ b/mlir/include/mlir/IR/OperationSupport.h
@@ -612,7 +612,7 @@ class ValueTypeRange final
template <typename RangeT>
inline bool operator==(ArrayRef<Type> lhs, const ValueTypeRange<RangeT> &rhs) {
- return lhs.size() == llvm::size(rhs) &&
+ return lhs.size() == static_cast<size_t>(llvm::size(rhs)) &&
std::equal(lhs.begin(), lhs.end(), rhs.begin());
}
More information about the Mlir-commits
mailing list