Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index f6bf24652e0e82afed19c440026652121b191a71..a7629c064b7ed7d9cee52c3eafd791229a86dfe8 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -772,8 +772,7 @@ void Heap::PreprocessStackTraces() { |
if (!maybe_code->IsCode()) break; |
Code* code = Code::cast(maybe_code); |
int offset = Smi::cast(elements->get(j + 3))->value(); |
- Address pc = code->address() + offset; |
- int pos = code->SourcePosition(pc); |
+ int pos = code->SourcePosition(offset); |
elements->set(j + 2, Smi::FromInt(pos)); |
} |
} |