Index: src/ast.cc |
diff --git a/src/ast.cc b/src/ast.cc |
index a44d9ee460edf3b12585bcddb8099694e351a514..418cc432b67b5066c69cbc772da7544cf5f777fe 100644 |
--- a/src/ast.cc |
+++ b/src/ast.cc |
@@ -969,7 +969,7 @@ class RegExpUnparser: public RegExpVisitor { |
public: |
RegExpUnparser(); |
void VisitCharacterRange(CharacterRange that); |
- SmartPointer<const char> ToString() { return stream_.ToCString(); } |
+ SmartArrayPointer<const char> ToString() { return stream_.ToCString(); } |
#define MAKE_CASE(Name) virtual void* Visit##Name(RegExp##Name*, void* data); |
FOR_EACH_REG_EXP_TREE_TYPE(MAKE_CASE) |
#undef MAKE_CASE |
@@ -1124,7 +1124,7 @@ void* RegExpUnparser::VisitEmpty(RegExpEmpty* that, void* data) { |
} |
-SmartPointer<const char> RegExpTree::ToString() { |
+SmartArrayPointer<const char> RegExpTree::ToString() { |
RegExpUnparser unparser; |
Accept(&unparser, NULL); |
return unparser.ToString(); |