[lld] 75ba351 - [lld-macho] Try to unbreak build
Jez Ng via llvm-commits
llvm-commits at lists.llvm.org
Wed May 5 12:47:22 PDT 2021
Author: Jez Ng
Date: 2021-05-05T15:47:14-04:00
New Revision: 75ba35130080f91494b0ceb90c0501b50787b1cc
URL: https://github.com/llvm/llvm-project/commit/75ba35130080f91494b0ceb90c0501b50787b1cc
DIFF: https://github.com/llvm/llvm-project/commit/75ba35130080f91494b0ceb90c0501b50787b1cc.diff
LOG: [lld-macho] Try to unbreak build
Looks like the PointerUnion casting cares about const-ness...
Added:
Modified:
lld/MachO/Arch/ARM.cpp
Removed:
################################################################################
diff --git a/lld/MachO/Arch/ARM.cpp b/lld/MachO/Arch/ARM.cpp
index f2d606f396e9..42c7b8930868 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<Cond>(base) == 0xf;
- const Symbol *sym = r.referent.get<const Symbol *>();
+ const Symbol *sym = r.referent.get<Symbol *>();
int32_t offset = value - (pc + 8);
if (auto *defined = dyn_cast<Defined>(sym)) {
More information about the llvm-commits
mailing list