diff --git a/utils/bazel/llvm-project-overlay/mlir/unittests/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/unittests/BUILD.bazel index 6c713c8289fb..36c0cdf153f5 100644 --- a/utils/bazel/llvm-project-overlay/mlir/unittests/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/mlir/unittests/BUILD.bazel @@ -234,6 +234,10 @@ gentbl_cc_library( ["-gen-pass-decls"], "TableGen/PassGenTest.h.inc", ), + ( + ["-gen-pass-defs"], + "TableGen/PassGenTest.cpp.inc", + ), ], tblgen = "//mlir:mlir-tblgen", td_file = "TableGen/passes.td", @@ -299,8 +303,8 @@ cc_test( "//llvm:gtest_main", "//mlir:AffineAnalysis", "//mlir:Analysis", - "//mlir:Parser", "//mlir:IR", + "//mlir:Parser", ], )