mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-12 06:31:14 +00:00
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. llvm-svn: 163764
This commit is contained in:
parent
ef895e2df9
commit
4b9568b260
@ -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.
|
// This is an ARM branch relocation, need to use a stub function.
|
||||||
|
|
||||||
// Look up for existing stub.
|
// Look up for existing stub.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user