File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
mlir/lib/Dialect/MemRef/IR Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -3151,10 +3151,9 @@ void TransposeOp::getAsmResultNames(
3151
3151
// / Build a strided memref type by applying `permutationMap` to `memRefType`.
3152
3152
static MemRefType inferTransposeResultType (MemRefType memRefType,
3153
3153
AffineMap permutationMap) {
3154
- auto rank = memRefType.getRank ();
3155
3154
auto originalSizes = memRefType.getShape ();
3156
3155
auto [originalStrides, offset] = getStridesAndOffset (memRefType);
3157
- assert (originalStrides.size () == static_cast <unsigned >(rank ));
3156
+ assert (originalStrides.size () == static_cast <unsigned >(memRefType. getRank () ));
3158
3157
3159
3158
// Compute permuted sizes and strides.
3160
3159
auto sizes = applyPermutationMap<int64_t >(permutationMap, originalSizes);
You can’t perform that action at this time.
0 commit comments