Skip to content

Commit 18ae727

Browse files
committed
use test.terminator instead of unregistered dialect
1 parent 55693e8 commit 18ae727

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

mlir/test/lib/Dialect/TestIRDLToCpp/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ mlir_target_link_libraries(MLIRTestIRDLToCppDialect PUBLIC
1414
MLIRPass
1515
MLIRSCFDialect
1616
MLIRTransforms
17+
MLIRTestDialect
1718
)

mlir/test/lib/Dialect/TestIRDLToCpp/test_conversion.testd.mlir

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: mlir-opt %s --allow-unregistered-dialect --pass-pipeline="builtin.module(test-irdl-conversion-check)" | FileCheck %s
1+
// RUN: mlir-opt %s --pass-pipeline="builtin.module(test-irdl-conversion-check)" | FileCheck %s
22
// CHECK-LABEL: module {
33
module {
44
// CHECK: func.func @test(%[[test_arg:[^ ]*]]: i1) {
@@ -14,15 +14,15 @@ module {
1414
"test_irdl_to_cpp.conditional"(%test_arg) ({
1515
^cond(%test: i1):
1616
%3 = "test_irdl_to_cpp.bar"() : () -> i32
17-
"fake.terminator"() : () -> ()
17+
"test.terminator"() : ()->()
1818
}, {
1919
^then(%what: i1, %ever: i32):
2020
%4 = "test_irdl_to_cpp.bar"() : () -> i32
21-
"fake.terminator"() : () -> ()
21+
"test.terminator"() : ()->()
2222
}, {
2323
^else():
2424
%5 = "test_irdl_to_cpp.bar"() : () -> i32
25-
"fake.terminator"() : () -> ()
25+
"test.terminator"() : ()->()
2626
}) : (i1) -> ()
2727
return
2828
}

0 commit comments

Comments
 (0)