// // This file is distributed under the MIT License. See LICENSE.md for details. // // revng includes #include // Local libraries includes #include "revng-c/RestructureCFGPass/ExprNode.h" void ExprNode::deleteExprNode(ExprNode *E) { switch (E->getKind()) { case NodeKind::NK_Atomic: delete static_cast(E); break; case NodeKind::NK_Not: delete static_cast(E); break; case NodeKind::NK_And: delete static_cast(E); break; case NodeKind::NK_Or: delete static_cast(E); break; default: revng_unreachable("Deleting unexpected ExprNode"); } }