diff --git a/src/relay/pass/to_anf.cc b/src/relay/pass/to_anf.cc index 3880fd16a286f..322515bb0549f 100644 --- a/src/relay/pass/to_anf.cc +++ b/src/relay/pass/to_anf.cc @@ -274,7 +274,7 @@ class Fill : ExprFunctor { } Expr VisitExpr(const Expr& e) { - Var v = VarNode::make(std::string("x"), IncompleteTypeNode::make(TypeVarNode::kType)); + Var v = VarNode::make(std::string("x"), IncompleteTypeNode::make(Kind::kType)); return this->VisitExpr(e, v); }