提交 ead94bfc 编写于 作者: X Xin Pan

fix destructor

test=develop
上级 2e149999
......@@ -27,7 +27,11 @@ namespace ir {
// Node should normally created by Graph::CreateXXXNode().
class Node {
public:
virtual ~Node() {}
virtual ~Node() {
if (!wrapper_.empty()) {
wrapper_deleter_();
}
}
enum class Type { kOperation, kVariable };
static constexpr char kControlDepVarName[] = "__control_var";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册