Update fix

Signed-off-by: Matthew Ballance <matt.ballance@gmail.com>
This commit is contained in:
Matthew Ballance 2025-12-20 21:25:05 +00:00
parent 9229b8ea2f
commit b4a131e9b6
1 changed files with 2 additions and 1 deletions

View File

@ -962,7 +962,8 @@ void AstNode::deleteTreeIter() {
// (via AstVarScope) and delete it properly (at which point backp will be null).
skipDelete = true;
}
nodep->m_backp = nullptr;
if (!skipDelete) {
nodep->deleteNode();