diff options
author | Jim Grosbach <grosbach@apple.com> | 2012-09-13 01:24:35 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2012-09-13 01:24:35 +0000 |
commit | 01e1a97021da37588ebaf94352984cd566729c4e (patch) | |
tree | 1bfa09bfaf1a1d332d40c1e747e686f46d824d3e /lib/ExecutionEngine | |
parent | ba9ba9f9bcb8e627ff9cc4bd11904db21762e5a2 (diff) | |
download | external_llvm-01e1a97021da37588ebaf94352984cd566729c4e.zip external_llvm-01e1a97021da37588ebaf94352984cd566729c4e.tar.gz external_llvm-01e1a97021da37588ebaf94352984cd566729c4e.tar.bz2 |
MCJIT: Make sure to mask off non-type-field bits.
When comparing to the macho relocation type enum value, make sure we're only
comparing against the bits in the RelType that correspond.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163764 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r-- | lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp index 73fbda4..4fd7bc9 100644 --- a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp +++ b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp @@ -254,7 +254,7 @@ void RuntimeDyldMachO::processRelocationRef(const ObjRelocationInfo &Rel, } } - if (Arch == Triple::arm && RelType == macho::RIT_ARM_Branch24Bit) { + if (Arch == Triple::arm && (RelType & 0xf) == macho::RIT_ARM_Branch24Bit) { // This is an ARM branch relocation, need to use a stub function. // Look up for existing stub. |