ASTLiteral clone only value

This commit is contained in:
vdimir 2022-04-22 12:09:03 +00:00
parent 540fafbe74
commit a7fa253ccf
No known key found for this signature in database
GPG Key ID: 6EE4CE2BEDC51862

View File

@ -39,7 +39,7 @@ public:
/** Get the text that identifies this element. */
String getID(char delim) const override { return "Literal" + (delim + applyVisitor(FieldVisitorDump(), value)); }
ASTPtr clone() const override { return std::make_shared<ASTLiteral>(*this); }
ASTPtr clone() const override { return std::make_shared<ASTLiteral>(value); }
void updateTreeHashImpl(SipHash & hash_state) const override;