fixed a bug with removing a node it shouldn't

main
Øyvind Skaaden 2022-04-03 22:42:13 +02:00
parent 83479f6a2d
commit ece2d9b83a
1 changed files with 5 additions and 1 deletions

View File

@ -273,9 +273,13 @@ resolve_constant_expressions(node_t **simplified, node_t *root)
*((int64_t*)result->data) = ~*((int64_t*)result->data);
break;
}
node_finalize(root);
}
else if (!root->data)
node_finalize(root);
else
result = root;
node_finalize(root);
break;
case 2: