[lld] r222598 - Silence a -Wcast-qual warning

David Majnemer david.majnemer at gmail.com
Fri Nov 21 16:45:01 PST 2014


Author: majnemer
Date: Fri Nov 21 18:45:01 2014
New Revision: 222598

URL: http://llvm.org/viewvc/llvm-project?rev=222598&view=rev
Log:
Silence a -Wcast-qual warning

Modified:
    lld/trunk/lib/ReaderWriter/MachO/ArchHandler_arm64.cpp

Modified: lld/trunk/lib/ReaderWriter/MachO/ArchHandler_arm64.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/MachO/ArchHandler_arm64.cpp?rev=222598&r1=222597&r2=222598&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/MachO/ArchHandler_arm64.cpp (original)
+++ lld/trunk/lib/ReaderWriter/MachO/ArchHandler_arm64.cpp Fri Nov 21 18:45:01 2014
@@ -402,7 +402,7 @@ std::error_code ArchHandler_arm64::getRe
   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 at GOT





More information about the llvm-commits mailing list