diff --git a/taichi/transforms/scalarize.cpp b/taichi/transforms/scalarize.cpp index 8fa79cb9e8283..b8e435672cf60 100644 --- a/taichi/transforms/scalarize.cpp +++ b/taichi/transforms/scalarize.cpp @@ -288,8 +288,6 @@ class ScalarizePointers : public BasicStmtVisitor { std::unordered_map> scalarized_local_tensor_map_; ScalarizePointers(IRNode *node) { - allow_undefined_visitor = true; - invoke_default_visitor = false; node->accept(this); modifier_.modify_ir();