Index: runtime/vm/object.h |
diff --git a/runtime/vm/object.h b/runtime/vm/object.h |
index b259aace91f16999c855816517e56f68c8c5f363..788b6c1d19d66bfb8a4dae7da65899f592de7922 100644 |
--- a/runtime/vm/object.h |
+++ b/runtime/vm/object.h |
@@ -684,7 +684,7 @@ class Object { |
ASSERT(Contains(reinterpret_cast<uword>(addr) - 1) && |
Contains(reinterpret_cast<uword>(addr) - kWordSize)); |
// At least check that there is a NoSafepointScope and hope it's big enough. |
- ASSERT(Isolate::Current()->no_safepoint_scope_depth() > 0); |
+ ASSERT(Thread::Current()->no_safepoint_scope_depth() > 0); |
return const_cast<FieldType*>(addr); |
} |