summaryrefslogtreecommitdiff
path: root/node/LiteralNode.hh
diff options
context:
space:
mode:
Diffstat (limited to 'node/LiteralNode.hh')
-rw-r--r--node/LiteralNode.hh4
1 files changed, 3 insertions, 1 deletions
diff --git a/node/LiteralNode.hh b/node/LiteralNode.hh
index 2e9b43a..4f9a61a 100644
--- a/node/LiteralNode.hh
+++ b/node/LiteralNode.hh
@@ -1,6 +1,8 @@
#ifndef PCC_LITERALNODE_H
#define PCC_LITERALNODE_H
+#include <string>
+
#include "BaseNode.hh"
namespace pcc {
@@ -10,7 +12,7 @@ class StringLiteralNode : public BaseNode {
Value CodeGen() override;
private:
- char* value_;
+ std::string value_;
};
} // namespace pcc