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 @@ -73,15 +73,15 @@ public:
7373 // otherwise.
7474 // ...
7575 }
76- void rewrite(Operation * op, PatternRewriter &rewriter) {
76+ void rewrite(Operation * op, PatternRewriter &rewriter) const override {
7777 // The ` rewrite ` method performs mutations on the IR rooted at ` op ` using
7878 // the provided rewriter. All mutations must go through the provided
7979 // rewriter.
8080 }
8181
8282 /// In this section, the ` match ` and ` rewrite ` implementation is specified
8383 /// using a single hook.
84- LogicalResult matchAndRewrite(Operation * op, PatternRewriter &rewriter) {
84+ LogicalResult matchAndRewrite(Operation * op, PatternRewriter &rewriter) const override {
8585 // The ` matchAndRewrite ` method performs both the matching and the mutation.
8686 // Note that the match must reach a successful point before IR mutation may
8787 // take place.
You can’t perform that action at this time.
0 commit comments