diff --git a/xla/mlir_hlo/mhlo/transforms/test_infer_shaped_type/test_infer_shaped_type_pass.cc b/xla/mlir_hlo/mhlo/transforms/test_infer_shaped_type/test_infer_shaped_type_pass.cc index 8bd3bbc140961..0805d1337187c 100644 --- a/xla/mlir_hlo/mhlo/transforms/test_infer_shaped_type/test_infer_shaped_type_pass.cc +++ b/xla/mlir_hlo/mhlo/transforms/test_infer_shaped_type/test_infer_shaped_type_pass.cc @@ -104,7 +104,7 @@ struct TestInferShapedTypeMethodsPass } // namespace -std::unique_ptr<::mlir::Pass> createTestInferShapedTypeMethodsPass() { +static std::unique_ptr<::mlir::Pass> createTestInferShapedTypeMethodsPass() { return std::make_unique(); }