Trivial change to fix builds

Pass the context while creating the Patternslist.
This commit is contained in:
Kiran Chandramohan 2021-03-25 09:31:04 +00:00
parent 70b6f16e07
commit 502f27e66f
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ public:
return !(embox.getShape() ||
embox.getType().cast<BoxType>().getEleTy().isa<SequenceType>());
});
mlir::OwningRewritePatternList patterns;
mlir::OwningRewritePatternList patterns(&context);
patterns.insert<EmboxConversion, ArrayCoorConversion, ReboxConversion>(
&context);
if (mlir::failed(