Index: runtime/vm/profiler_test.cc |
diff --git a/runtime/vm/profiler_test.cc b/runtime/vm/profiler_test.cc |
index 610fa419be40059a39538bc83b0eb5df68feb305..b0c580e70eec33eef1e0d3c2df6cd821027966be 100644 |
--- a/runtime/vm/profiler_test.cc |
+++ b/runtime/vm/profiler_test.cc |
@@ -18,8 +18,8 @@ class ProfileSampleBufferTestHelper { |
const SampleBuffer& sample_buffer) { |
intptr_t c = 0; |
for (intptr_t i = 0; i < sample_buffer.capacity(); i++) { |
- Sample* sample = sample_buffer.GetSample(i); |
- if (sample->isolate != isolate) { |
+ Sample sample = sample_buffer.GetSample(i); |
+ if (sample.isolate != isolate) { |
continue; |
} |
c++; |
@@ -32,11 +32,11 @@ class ProfileSampleBufferTestHelper { |
const SampleBuffer& sample_buffer) { |
intptr_t c = 0; |
for (intptr_t i = 0; i < sample_buffer.capacity(); i++) { |
- Sample* sample = sample_buffer.GetSample(i); |
- if (sample->isolate != isolate) { |
+ Sample sample = sample_buffer.GetSample(i); |
+ if (sample.isolate != isolate) { |
continue; |
} |
- c += sample->pcs[0]; |
+ c += sample.pcs[0]; |
} |
return c; |
} |