forked from OSchip/llvm-project
Fix warning "comparison of integers of different signs" (NFC)
This commit is contained in:
parent
aeb36ae0f4
commit
cc4781464f
|
@ -112,7 +112,7 @@ private:
|
|||
ArrayRef<Value> constants, ValueRange::iterator &element_it,
|
||||
SmallVectorImpl<Value> &indices,
|
||||
ImplicitLocOpBuilder b) const {
|
||||
if (dim == shape.size() - 1) {
|
||||
if (dim == static_cast<int>(shape.size()) - 1) {
|
||||
for (int i = 0; i < shape.back(); ++i) {
|
||||
indices.back() = constants[i];
|
||||
b.create<memref::StoreOp>(*element_it, buffer, indices);
|
||||
|
|
Loading…
Reference in New Issue