diff options
Diffstat (limited to 'runtime/entrypoints/entrypoint_utils.h')
-rw-r--r-- | runtime/entrypoints/entrypoint_utils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/entrypoints/entrypoint_utils.h b/runtime/entrypoints/entrypoint_utils.h index c3deba5ae9..8b94b5abe1 100644 --- a/runtime/entrypoints/entrypoint_utils.h +++ b/runtime/entrypoints/entrypoint_utils.h @@ -136,6 +136,7 @@ ALWAYS_INLINE static inline mirror::Object* AllocObjectFromCode(uint32_t type_id gc::Heap* heap = Runtime::Current()->GetHeap(); return klass->Alloc<kInstrumented>(self, heap->GetCurrentAllocator()); } + DCHECK(klass != nullptr); return klass->Alloc<kInstrumented>(self, allocator_type); } |