提交 1905f1a1 编写于 作者: D Dun Liang

bug fix && test=develop

上级 bec68fa0
...@@ -142,7 +142,7 @@ class Graph { ...@@ -142,7 +142,7 @@ class Graph {
// TODO(panyx0718): control var name should be really unique. // TODO(panyx0718): control var name should be really unique.
const std::string name = string::Sprintf( const std::string name = string::Sprintf(
"%s@%llu", static_cast<const char *>(ir::Node::kControlDepVarName), "%s@%llu", static_cast<const char *>(ir::Node::kControlDepVarName),
node_set_.size()); num_node_created_);
auto *x = AddNode(new ir::Node(name, ir::Node::Type::kVariable)); auto *x = AddNode(new ir::Node(name, ir::Node::Type::kVariable));
x->SetId(num_node_created_++); x->SetId(num_node_created_++);
return x; return x;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册