Index: runtime/vm/timeline_macos.cc |
diff --git a/runtime/vm/timeline_macos.cc b/runtime/vm/timeline_macos.cc |
index 18c13118d1d603e281d844386108c450deae5eaf..a17b590a4ed01c3d3e5454e415b6b43d860a1130 100644 |
--- a/runtime/vm/timeline_macos.cc |
+++ b/runtime/vm/timeline_macos.cc |
@@ -33,7 +33,7 @@ TimelineEventBlock* TimelineEventPlatformRecorder::GetNewBlockLocked() { |
if (block_cursor_ == num_blocks_) { |
block_cursor_ = 0; |
} |
- TimelineEventBlock* block = blocks_[block_cursor_++]; |
+ TimelineEventBlock* block = &blocks_[block_cursor_++]; |
block->Reset(); |
block->Open(); |
return block; |