Index: runtime/vm/weak_code.cc |
diff --git a/runtime/vm/weak_code.cc b/runtime/vm/weak_code.cc |
index 4de218985f57951ee0dccf1cc920897dc6a8e575..6dedc88f35f2f60fe5173671745790d6a63860a0 100644 |
--- a/runtime/vm/weak_code.cc |
+++ b/runtime/vm/weak_code.cc |
@@ -76,7 +76,7 @@ void WeakCodeReferences::DisableCode() { |
code = frame->LookupDartCode(); |
if (IsOptimizedCode(code_objects, code)) { |
ReportDeoptimization(code); |
- DeoptimizeAt(code, frame); |
+ DeoptimizeAt(code, frame->pc()); |
} |
frame = iterator.NextFrame(); |
} |