llvm.org GIT mirror llvm / 01e1a97
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 Jim Grosbach 7 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
253253 }
254254 }
255255
256 if (Arch == Triple::arm && RelType == macho::RIT_ARM_Branch24Bit) {
256 if (Arch == Triple::arm && (RelType & 0xf) == macho::RIT_ARM_Branch24Bit) {
257257 // This is an ARM branch relocation, need to use a stub function.
258258
259259 // Look up for existing stub.