Remove unverifiable assertions from VisitRefsForCompaction am: b73e8ce972

Original change: https://android-review.googlesource.com/c/platform/art/+/2980792

Change-Id: I611cca307af960688cec2b1c48ec2ca4c891c066
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/runtime/mirror/object-refvisitor-inl.h b/runtime/mirror/object-refvisitor-inl.h
index fa2fbae..d4f4749 100644
--- a/runtime/mirror/object-refvisitor-inl.h
+++ b/runtime/mirror/object-refvisitor-inl.h
@@ -145,7 +145,6 @@
     VisitInstanceFieldsReferences<kVerifyFlags, kReadBarrierOption>(klass, visitor);
     size = kFetchObjSize ? klass->GetObjectSize<kSizeOfFlags>() : 0;
   } else if ((class_flags & kClassFlagNoReferenceFields) != 0) {
-    CheckNoReferenceField<kVerifyFlags, kReadBarrierOption>(klass);
     if ((class_flags & kClassFlagString) != 0) {
       size = kFetchObjSize ? static_cast<String*>(this)->SizeOf<kSizeOfFlags>() : 0;
     } else if (klass->IsArrayClass<kVerifyFlags>()) {
@@ -168,7 +167,6 @@
                                                                                    visitor);
     size = kFetchObjSize ? as_klass->SizeOf<kSizeOfFlags>() : 0;
   } else if (class_flags == kClassFlagObjectArray) {
-    DCHECK((klass->IsObjectArrayClass<kVerifyFlags, kReadBarrierOption>()));
     ObjPtr<ObjectArray<Object>> obj_arr = ObjPtr<ObjectArray<Object>>::DownCast(this);
     obj_arr->VisitReferences(visitor, begin, end);
     size = kFetchObjSize ?