diff options
author | Mehdi Amini <joker.eph@gmail.com> | 2020-08-24 05:03:59 +0000 |
---|---|---|
committer | Mehdi Amini <joker.eph@gmail.com> | 2020-08-24 06:49:29 +0000 |
commit | 610706906ae218eaff5b996f64554be7b279e4f0 (patch) | |
tree | 0ce7eb58fdc2255a7af98de3b2536ef55cf7f8c3 /mlir/test/lib | |
parent | b999400a4fb645cab6d8abcb1ce9146775f69c64 (diff) | |
download | llvm-610706906ae218eaff5b996f64554be7b279e4f0.zip llvm-610706906ae218eaff5b996f64554be7b279e4f0.tar.gz llvm-610706906ae218eaff5b996f64554be7b279e4f0.tar.bz2 |
Add an assertion to protect against missing Dialect registration in a pass pipeline (NFC)
Reviewed By: rriddle
Differential Revision: https://reviews.llvm.org/D86327
Diffstat (limited to 'mlir/test/lib')
-rw-r--r-- | mlir/test/lib/Transforms/TestConvertCallOp.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mlir/test/lib/Transforms/TestConvertCallOp.cpp b/mlir/test/lib/Transforms/TestConvertCallOp.cpp index 6cb596b..980c542 100644 --- a/mlir/test/lib/Transforms/TestConvertCallOp.cpp +++ b/mlir/test/lib/Transforms/TestConvertCallOp.cpp @@ -34,6 +34,10 @@ public: class TestConvertCallOp : public PassWrapper<TestConvertCallOp, OperationPass<ModuleOp>> { public: + void getDependentDialects(DialectRegistry ®istry) const final { + registry.insert<LLVM::LLVMDialect>(); + } + void runOnOperation() override { ModuleOp m = getOperation(); |