File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2598,7 +2598,7 @@ struct ConstantRankReduction : public OpRewritePattern<memref::AllocaOp> {
2598
2598
}
2599
2599
if (auto load = dyn_cast<AffineLoadOp>(u)) {
2600
2600
rewriter.replaceOpWithNewOp <AffineLoadOp>(
2601
- load, newOp, AffineMap::get (load .getContext ()), ArrayRef<Value>());
2601
+ load, newOp, AffineMap::get (op .getContext ()), ArrayRef<Value>());
2602
2602
continue ;
2603
2603
}
2604
2604
if (auto store = dyn_cast<memref::StoreOp>(u)) {
@@ -2643,7 +2643,7 @@ struct ConstantRankReduction : public OpRewritePattern<memref::AllocaOp> {
2643
2643
store, TypeRange (), cond, /* hasElse*/ false );
2644
2644
rewriter.setInsertionPointToStart (ifOp.thenBlock ());
2645
2645
rewriter.create <AffineStoreOp>(loc, val, newOp,
2646
- AffineMap::get (store .getContext ()),
2646
+ AffineMap::get (op .getContext ()),
2647
2647
ArrayRef<Value>());
2648
2648
continue ;
2649
2649
}
You can’t perform that action at this time.
0 commit comments