Fix mac build (hopefully)
Add a Ptr() for SafeGetDeclaringClass
Test: untested
Change-Id: Id949a36e081e9a7b226ae84b2693307a23c8bbc7
diff --git a/runtime/fault_handler.cc b/runtime/fault_handler.cc
index d0e78ab..1ab0b0e 100644
--- a/runtime/fault_handler.cc
+++ b/runtime/fault_handler.cc
@@ -115,7 +115,7 @@
static mirror::Class* SafeGetDeclaringClass(ArtMethod* method_obj)
REQUIRES_SHARED(Locks::mutator_lock_) {
- return method_obj->GetDeclaringClassUnchecked<kWithoutReadBarrier>();
+ return method_obj->GetDeclaringClassUnchecked<kWithoutReadBarrier>().Ptr();
}
static bool SafeVerifyClassClass(mirror::Class* cls) REQUIRES_SHARED(Locks::mutator_lock_) {