From 75ba35130080f91494b0ceb90c0501b50787b1cc Mon Sep 17 00:00:00 2001 From: Jez Ng Date: Wed, 5 May 2021 15:46:42 -0400 Subject: [PATCH] [lld-macho] Try to unbreak build Looks like the PointerUnion casting cares about const-ness... --- lld/MachO/Arch/ARM.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lld/MachO/Arch/ARM.cpp b/lld/MachO/Arch/ARM.cpp index f2d606f..42c7b89 100644 --- a/lld/MachO/Arch/ARM.cpp +++ b/lld/MachO/Arch/ARM.cpp @@ -107,7 +107,7 @@ void ARM::relocateOne(uint8_t *loc, const Reloc &r, uint64_t value, case ARM_RELOC_BR24: { uint32_t base = read32le(loc); bool isBlx = Bitfield::get(base) == 0xf; - const Symbol *sym = r.referent.get(); + const Symbol *sym = r.referent.get(); int32_t offset = value - (pc + 8); if (auto *defined = dyn_cast(sym)) { -- 2.7.4