diff options
Diffstat (limited to 'mlir/lib/Transforms')
| -rw-r--r-- | mlir/lib/Transforms/MaterializeVectors.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Transforms/MaterializeVectors.cpp b/mlir/lib/Transforms/MaterializeVectors.cpp index d1374e92dc8..0a7eaabbb09 100644 --- a/mlir/lib/Transforms/MaterializeVectors.cpp +++ b/mlir/lib/Transforms/MaterializeVectors.cpp @@ -454,7 +454,7 @@ static AffineMap projectedPermutationMap(VectorTransferOpTy transfer, "Shape and ratio not of the same size"); unsigned dim = 0; SmallVector<AffineExpr, 4> keep; - MLIRContext *context = transfer->getInstruction()->getContext(); + MLIRContext *context = transfer.getContext(); functional::zipApply( [&dim, &keep, context](int64_t shape, int64_t ratio) { assert(shape >= ratio && "shape dim must be greater than ratio dim"); |

