Index: src/gdb-jit.cc |
diff --git a/src/gdb-jit.cc b/src/gdb-jit.cc |
index 4d57e254609848372afa31633ea2ae5cba2790e0..68cb0533b8e3695eceebc634e0a209a14fc106fb 100644 |
--- a/src/gdb-jit.cc |
+++ b/src/gdb-jit.cc |
@@ -993,7 +993,7 @@ class CodeDescription BASE_EMBEDDED { |
} |
#endif |
- SmartPointer<char> GetFilename() { |
+ SmartArrayPointer<char> GetFilename() { |
return String::cast(script_->name())->ToCString(); |
} |
@@ -1991,7 +1991,7 @@ void GDBJITInterface::AddCode(Handle<String> name, |
GetScriptLineNumber(script, 0); |
if (!name.is_null()) { |
- SmartPointer<char> name_cstring = name->ToCString(DISALLOW_NULLS); |
+ SmartArrayPointer<char> name_cstring = name->ToCString(DISALLOW_NULLS); |
AddCode(*name_cstring, *code, GDBJITInterface::FUNCTION, *script, info); |
} else { |
AddCode("", *code, GDBJITInterface::FUNCTION, *script, info); |