Fix overly restrictive assert
Found by 084-class-init on a clean build.
Bug: 10750824
Change-Id: I7cf1ee190cbddbda98132511527eab36c36da523
diff --git a/runtime/class_linker.cc b/runtime/class_linker.cc
index 4a3ae1b..210386a 100644
--- a/runtime/class_linker.cc
+++ b/runtime/class_linker.cc
@@ -3979,7 +3979,8 @@
}
}
}
- DCHECK((resolved == NULL) || resolved->IsResolved()) << PrettyDescriptor(resolved);
+ DCHECK((resolved == NULL) || resolved->IsResolved() || resolved->IsErroneous())
+ << PrettyDescriptor(resolved) << " " << resolved->GetStatus();
return resolved;
}