OSDN Git Service

Remove DCHECK that does not work for gtests.
authorNicolas Geoffray <ngeoffray@google.com>
Tue, 27 Oct 2015 18:18:39 +0000 (18:18 +0000)
committerNicolas Geoffray <ngeoffray@google.com>
Tue, 27 Oct 2015 18:18:39 +0000 (18:18 +0000)
Change-Id: I12e11fd2faffa2e53771a0dd988447f9d72b554b

runtime/oat_quick_method_header.h

index 03cad08..c9a2cfb 100644 (file)
@@ -43,8 +43,6 @@ class PACKED(4) OatQuickMethodHeader {
   static OatQuickMethodHeader* FromCodePointer(const void* code_ptr) {
     uintptr_t code = reinterpret_cast<uintptr_t>(code_ptr);
     uintptr_t header = code - OFFSETOF_MEMBER(OatQuickMethodHeader, code_);
-    DCHECK(IsAlignedParam(code, GetInstructionSetAlignment(kRuntimeISA)) ||
-           IsAlignedParam(header, GetInstructionSetAlignment(kRuntimeISA)));
     return reinterpret_cast<OatQuickMethodHeader*>(header);
   }