fix destructor

test=develop
revert-14324-fix_vlog
Xin Pan 7 years ago
parent 2e14999942
commit ead94bfc6c

@ -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";

Loading…
Cancel
Save