diff options
Diffstat (limited to 'runtime/mirror/object.cc')
-rw-r--r-- | runtime/mirror/object.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/mirror/object.cc b/runtime/mirror/object.cc index bbbdf98be8..57ac46fec6 100644 --- a/runtime/mirror/object.cc +++ b/runtime/mirror/object.cc @@ -214,7 +214,7 @@ void Object::CheckFieldAssignmentImpl(MemberOffset field_offset, Object* new_val if (field->GetOffset().Int32Value() == field_offset.Int32Value()) { CHECK_NE(field->GetTypeAsPrimitiveType(), Primitive::kPrimNot); // TODO: resolve the field type for moving GC. - mirror::Class* field_type = field->GetType(!kMovingCollector); + mirror::Class* field_type = field->GetType<!kMovingCollector>(); if (field_type != nullptr) { CHECK(field_type->IsAssignableFrom(new_value->GetClass())); } @@ -236,7 +236,7 @@ void Object::CheckFieldAssignmentImpl(MemberOffset field_offset, Object* new_val if (field->GetOffset().Int32Value() == field_offset.Int32Value()) { CHECK_NE(field->GetTypeAsPrimitiveType(), Primitive::kPrimNot); // TODO: resolve the field type for moving GC. - mirror::Class* field_type = field->GetType(!kMovingCollector); + mirror::Class* field_type = field->GetType<!kMovingCollector>(); if (field_type != nullptr) { CHECK(field_type->IsAssignableFrom(new_value->GetClass())); } |