Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 91f37367dae9d0ec815cbd4738bc62484e1df80f..bb85bd9f3b4c9a4088c8c4bfb5e92904e0be151d 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -94,7 +94,7 @@ void RunWithProfiler(void (*test)()) { |
cpu_profiler->StartCpuProfiling(profile_name); |
(*test)(); |
- cpu_profiler->DeleteAllCpuProfiles(); |
+ reinterpret_cast<i::CpuProfiler*>(cpu_profiler)->DeleteAllProfiles(); |
} |