Index: src/profile-generator.cc |
diff --git a/src/profile-generator.cc b/src/profile-generator.cc |
index 945bdd6cc12f5ea883ea6a30a12c24f938b81de2..aa01026a7177624484b72f8686481640e26edfe4 100644 |
--- a/src/profile-generator.cc |
+++ b/src/profile-generator.cc |
@@ -628,11 +628,8 @@ void ProfileGenerator::RecordTickSample(const TickSample& sample) { |
} |
} |
- for (const Address* stack_pos = sample.stack, |
- *stack_end = stack_pos + sample.frames_count; |
- stack_pos != stack_end; |
- ++stack_pos) { |
- *entry++ = code_map_.FindEntry(*stack_pos); |
+ for (unsigned i = 0; i < sample.frames_count; ++i) { |
+ *entry++ = code_map_.FindEntry(static_cast<Address>(sample.stack[i])); |
} |
} |