From 7d32dbc02beac2cb0217d52b61f2b3ef9974ffa6 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Tue, 27 Oct 2015 18:18:39 +0000 Subject: [PATCH] Remove DCHECK that does not work for gtests. Change-Id: I12e11fd2faffa2e53771a0dd988447f9d72b554b --- runtime/oat_quick_method_header.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/runtime/oat_quick_method_header.h b/runtime/oat_quick_method_header.h index 03cad0835..c9a2cfbc0 100644 --- a/runtime/oat_quick_method_header.h +++ b/runtime/oat_quick_method_header.h @@ -43,8 +43,6 @@ class PACKED(4) OatQuickMethodHeader { static OatQuickMethodHeader* FromCodePointer(const void* code_ptr) { uintptr_t code = reinterpret_cast(code_ptr); uintptr_t header = code - OFFSETOF_MEMBER(OatQuickMethodHeader, code_); - DCHECK(IsAlignedParam(code, GetInstructionSetAlignment(kRuntimeISA)) || - IsAlignedParam(header, GetInstructionSetAlignment(kRuntimeISA))); return reinterpret_cast(header); } -- 2.11.0