Fix GCC lint complaint of calling NULL->cloneTree. No functional change intended.

This commit is contained in:
Wilson Snyder
2018-03-10 17:44:17 -05:00
parent 2c30aecc5b
commit d08a91b71e
6 changed files with 21 additions and 8 deletions
+1 -1
View File
@@ -646,7 +646,7 @@ AstNode* AstNode::cloneTreeIterList() {
}
AstNode* AstNode::cloneTree(bool cloneNextLink) {
if (!this) return NULL; // verilog.y relies on this
UDEBUGONLY(UASSERT(dynamic_cast<AstNode*>(this),"this should not be NULL"););
this->debugTreeChange("-cloneThs: ", __LINE__, cloneNextLink);
cloneClearTree();
AstNode* newp;