Index: src/profile-generator.cc |
diff --git a/src/profile-generator.cc b/src/profile-generator.cc |
index 6017f12dc67ece8ac7e51383e2479b4f36721dcb..57ac986e3089ce0a4263e8ee624887acbe148b31 100644 |
--- a/src/profile-generator.cc |
+++ b/src/profile-generator.cc |
@@ -622,11 +622,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])); |
} |
} |