OSDN Git Service

[RuntimeDyld] Use isInt to assert that a relocation didn't overflow
authorDavid Majnemer <david.majnemer@gmail.com>
Fri, 15 May 2015 20:32:25 +0000 (20:32 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Fri, 15 May 2015 20:32:25 +0000 (20:32 +0000)
commite892415f25c1a2b5be5e22dbfaa8b6e6c308d552
tree018d9f1f0f8bc7180f72fd5780334ce172234171
parent7fa889dd8799a5db053d011031f8a1cdebed0e60
[RuntimeDyld] Use isInt to assert that a relocation didn't overflow

isInt is a little easier to read, let's use that more consistently.
Incidentally, this also silences a warning for shifting a negative
number.

This fixes PR23532.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237476 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp