Fix cloning of ASTIdentifier

This commit is contained in:
Nikolay Degterinsky 2022-11-16 10:22:28 +00:00
parent fbff52847c
commit 122508d844

View File

@ -63,6 +63,7 @@ ASTPtr ASTIdentifier::clone() const
{
auto ret = std::make_shared<ASTIdentifier>(*this);
ret->semantic = std::make_shared<IdentifierSemanticImpl>(*ret->semantic);
ret->cloneChildren();
return ret;
}