Internals: Remove unneeded constructor.

This commit is contained in:
Wilson Snyder
2020-09-15 07:35:53 -04:00
parent d07a6f81e4
commit 0765443353
3 changed files with 5 additions and 14 deletions
+1 -2
View File
@@ -134,8 +134,7 @@ private:
AstNode* exprp = nodep->exprp()->unlinkFrBack();
AstNode* past = new AstPast(fl, exprp, nullptr);
past->dtypeFrom(exprp);
exprp = new AstEq(fl, past,
exprp->cloneTree(false));
exprp = new AstEq(fl, past, exprp->cloneTree(false));
exprp->dtypeSetLogicBool();
nodep->replaceWith(exprp);
nodep->sentreep(newSenTree(nodep));