Index: src/heap-snapshot-generator.cc |
diff --git a/src/heap-snapshot-generator.cc b/src/heap-snapshot-generator.cc |
index 84e819d7a6d08a1d9ec4c846b1a17952f57f80ac..8bf3d76da67c9161686fd2137141c64ad42b4371 100644 |
--- a/src/heap-snapshot-generator.cc |
+++ b/src/heap-snapshot-generator.cc |
@@ -1854,8 +1854,8 @@ void V8HeapExplorer::SetPropertyReference(HeapObject* parent_obj, |
const char* name = name_format_string != NULL && reference_name->IsString() |
? names_->GetFormatted( |
name_format_string, |
- *String::cast(reference_name)->ToCString( |
- DISALLOW_NULLS, ROBUST_STRING_TRAVERSAL)) : |
+ String::cast(reference_name)->ToCString( |
+ DISALLOW_NULLS, ROBUST_STRING_TRAVERSAL).get()) : |
names_->GetName(reference_name); |
filler_->SetNamedReference(type, |