diff options
Diffstat (limited to 'lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h')
-rw-r--r-- | lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h index 6911f2f07a..08573eed5c 100644 --- a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h +++ b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h @@ -28,16 +28,13 @@ class RuntimeDyldMachO : public RuntimeDyldImpl { private: /// Write the least significant 'Size' bytes in 'Value' out at the address - /// pointed to by Addr. Check for overflow. + /// pointed to by Addr. bool applyRelocationValue(uint8_t *Addr, uint64_t Value, unsigned Size) { for (unsigned i = 0; i < Size; ++i) { *Addr++ = (uint8_t)Value; Value >>= 8; } - if (Value) // Catch overflow - return Error("Relocation out of range."); - return false; } |