Index: runtime/vm/profiler.h |
diff --git a/runtime/vm/profiler.h b/runtime/vm/profiler.h |
index be4f0498a21597892dd3f5af43f8a9eed5201c60..529a193992fb1da176e8419c14dcfa02cbb4e937 100644 |
--- a/runtime/vm/profiler.h |
+++ b/runtime/vm/profiler.h |
@@ -434,8 +434,7 @@ class CodeDescriptor : public ZoneAllocated { |
} |
const char* Name() const { |
- const String& name = String::Handle(code_.Name()); |
- return name.ToCString(); |
+ return code_.Name(); |
} |
bool Contains(uword pc) const { |