|
51 | 51 | #include "llvm/Support/MathExtras.h"
|
52 | 52 | #include "llvm/Support/raw_ostream.h"
|
53 | 53 | #include <cassert>
|
| 54 | +#include <cstdint> |
54 | 55 | #include <optional>
|
55 | 56 |
|
56 | 57 | using namespace mlir;
|
@@ -4891,7 +4892,8 @@ LogicalResult PackOp::generateScalarImplementation(OpBuilder &builder,
|
4891 | 4892 | if (failed(reifyResultShapes(builder, outputShape))) {
|
4892 | 4893 | return getOperation()->emitOpError("failed to reify result shape");
|
4893 | 4894 | }
|
4894 |
| - if (outputShape.size() != 1 || outputShape[0].size() != getOutputRank()) { |
| 4895 | + if (outputShape.size() != 1 || |
| 4896 | + outputShape[0].size() != static_cast<size_t>(getOutputRank())) { |
4895 | 4897 | return getOperation()->emitOpError(
|
4896 | 4898 | "expected shape of one result value of rank")
|
4897 | 4899 | << getOutputRank();
|
@@ -5253,14 +5255,14 @@ void UnPackOp::getAsmResultNames(
|
5253 | 5255 | LogicalResult UnPackOp::generateScalarImplementation(OpBuilder &builder,
|
5254 | 5256 | Location loc,
|
5255 | 5257 | ValueRange ivs) {
|
5256 |
| - return llvm::success(); |
5257 | 5258 | OpBuilder::InsertionGuard g(builder);
|
5258 | 5259 | ReifiedRankedShapedTypeDims outputShape;
|
5259 | 5260 |
|
5260 | 5261 | if (failed(reifyResultShapes(builder, outputShape))) {
|
5261 | 5262 | return getOperation()->emitError("failed to reify result shapes");
|
5262 | 5263 | }
|
5263 |
| - if (outputShape.size() != 1 || outputShape[0].size() != getOutputRank()) { |
| 5264 | + if (outputShape.size() != 1 || |
| 5265 | + outputShape[0].size() != static_cast<size_t>(getOutputRank())) { |
5264 | 5266 | return getOperation()->emitError(
|
5265 | 5267 | "expected shape of one result value of rank")
|
5266 | 5268 | << getOutputRank();
|
|
0 commit comments