diff --git a/tests/cpp/transforms/eliminate_immutable_local_vars_test.cpp b/tests/cpp/transforms/eliminate_immutable_local_vars_test.cpp index e919d2145bf6d..3f1dded336159 100644 --- a/tests/cpp/transforms/eliminate_immutable_local_vars_test.cpp +++ b/tests/cpp/transforms/eliminate_immutable_local_vars_test.cpp @@ -16,7 +16,6 @@ TEST(TensorType, eliminateImmutableLocalVars) { auto func = []() {}; auto kernel = std::make_unique(*test_prog.prog(), func, "fake_kernel"); - block->kernel = kernel.get(); auto &type_factory = TypeFactory::get_instance();