diff options
author | 2015-06-18 18:20:59 +0100 | |
---|---|---|
committer | 2015-06-18 18:20:59 +0100 | |
commit | 33d6903e570daf8f3cf7c1f6ebd9a6dd22c7c23c (patch) | |
tree | 8069008292fe085d051300f1a871392dc413f820 /runtime/debugger.cc | |
parent | 822c00d0fe3b70d1f1fe5bac03713674d45f8173 (diff) |
Replace some run-time assertions with compile-time ones in ART.
Change-Id: I16c3fad45c4b98b94b7c83d071374096e81d407a
Diffstat (limited to 'runtime/debugger.cc')
-rw-r--r-- | runtime/debugger.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/debugger.cc b/runtime/debugger.cc index 5918c10515..f84e10c628 100644 --- a/runtime/debugger.cc +++ b/runtime/debugger.cc @@ -3942,7 +3942,7 @@ void Dbg::ExecuteMethodWithoutPendingException(ScopedObjectAccess& soa, DebugInv << " arg_count=" << pReq->arg_count; CHECK(m != nullptr); - CHECK_EQ(sizeof(jvalue), sizeof(uint64_t)); + static_assert(sizeof(jvalue) == sizeof(uint64_t), "jvalue and uint64_t have different sizes."); // Invoke the method. ScopedLocalRef<jobject> ref(soa.Env(), soa.AddLocalReference<jobject>(pReq->receiver.Read())); |