From 70735351cac874a7d56bc03fe315d76c308130d0 Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Sat, 2 Aug 2014 03:00:49 +0000 Subject: [PATCH] [MCJIT] Fix an overly-aggressive check in RuntimeDyldMachOARM. This should fix the MachO_ARM_PIC_relocations.s test failures on some 32-bit testers. llvm-svn: 214613 --- .../RuntimeDyld/Targets/RuntimeDyldMachOARM.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOARM.h b/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOARM.h index dadde7696567..b7bd0b9d04fd 100644 --- a/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOARM.h +++ b/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOARM.h @@ -105,11 +105,6 @@ public: Value >>= 2; // Mask the value to 24 bits. uint64_t FinalValue = Value & 0xffffff; - // Check for overflow. - if (Value != FinalValue) { - Error("ARM BR24 relocation out of range."); - return; - } // FIXME: If the destination is a Thumb function (and the instruction // is a non-predicated BL instruction), we need to change it to a BLX // instruction instead.