Fix isPure to be superset of isOutputter.

This may cause some additional SIDEEFFECT warnings that previously were not shown.
This commit is contained in:
Wilson Snyder
2024-06-16 21:43:30 -04:00
parent d5cfe1a379
commit 607c19a67d
5 changed files with 8 additions and 7 deletions
-1
View File
@@ -801,7 +801,6 @@ AstNode* AstNode::cloneTreeIter(bool needPure) {
<< this->warnMore()
<< "... Suggest use a temporary variable in place of this expression");
// this->v3fatalSrc("cloneTreePure debug backtrace"); // Comment in to debug where caused
// it
}
AstNode* const newp = this->clone();
if (this->m_op1p) newp->op1p(this->m_op1p->cloneTreeIterList(needPure));