Handle the case a boot classpath class fails to verify.

Test: boot
Bug: 155852343
Change-Id: Ide5d546ce33b38614957bce89c215791dc9d044c
diff --git a/runtime/jit/jit.cc b/runtime/jit/jit.cc
index df26ca4..2e49067 100644
--- a/runtime/jit/jit.cc
+++ b/runtime/jit/jit.cc
@@ -914,7 +914,12 @@
           continue;
         }
         ++number_of_classes;
-        linker->VerifyClass(self, klass);
+        if (linker->VerifyClass(self, klass) == verifier::FailureKind::kHardFailure) {
+          DCHECK(self->IsExceptionPending());
+          LOG(FATAL) << "Methods in the boot classpath failed to verify: "
+                     << self->GetException()->Dump();
+        }
+        CHECK(!self->IsExceptionPending());
       }
     }
     LOG(INFO) << "Verified "