From 86903b70fc4a3f17d4b4c208367632d0f7759085 Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Sat, 22 Nov 2014 00:45:01 +0000 Subject: [PATCH] Silence a -Wcast-qual warning llvm-svn: 222598 --- lld/lib/ReaderWriter/MachO/ArchHandler_arm64.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lld/lib/ReaderWriter/MachO/ArchHandler_arm64.cpp b/lld/lib/ReaderWriter/MachO/ArchHandler_arm64.cpp index de97c576ecd4..3a97911cbd3d 100644 --- a/lld/lib/ReaderWriter/MachO/ArchHandler_arm64.cpp +++ b/lld/lib/ReaderWriter/MachO/ArchHandler_arm64.cpp @@ -402,7 +402,7 @@ std::error_code ArchHandler_arm64::getReferenceInfo( case ARM64_RELOC_UNSIGNED | rLength8: // ex: .quad Lfoo + N *kind = pointer64; - return atomFromAddress(reloc.symbol, *(little64_t *)fixupContent, + return atomFromAddress(reloc.symbol, *(const little64_t *)fixupContent, target, addend); case ARM64_RELOC_POINTER_TO_GOT | rExtern | rLength8: // ex: .quad _foo@GOT