Index: runtime/vm/block_scheduler.cc |
diff --git a/runtime/vm/block_scheduler.cc b/runtime/vm/block_scheduler.cc |
index e8d950c536022cc616352c1dfaf08dc0db3ba651..7d6cfc567c74fb7825e3a6886cce8e358f8ffaa4 100644 |
--- a/runtime/vm/block_scheduler.cc |
+++ b/runtime/vm/block_scheduler.cc |
@@ -90,7 +90,8 @@ void BlockScheduler::AssignEdgeWeights() const { |
const PcDescriptors& descriptors = |
PcDescriptors::Handle(unoptimized_code.pc_descriptors()); |
PcDescriptors::Iterator iter(descriptors, RawPcDescriptors::kDeopt); |
- uword entry = unoptimized_code.EntryPoint(); |
+ uword entry = |
+ Instructions::Handle(unoptimized_code.instructions()).EntryPoint(); |
while (iter.MoveNext()) { |
intptr_t deopt_id = iter.DeoptId(); |
ASSERT(deopt_id != Isolate::kNoDeoptId); |