[llvm] r221781 - Fixing a -Wcast-qual warning; NFC.
Aaron Ballman
aaron at aaronballman.com
Wed Nov 12 05:55:28 PST 2014
Author: aaronballman
Date: Wed Nov 12 07:55:27 2014
New Revision: 221781
URL: http://llvm.org/viewvc/llvm-project?rev=221781&view=rev
Log:
Fixing a -Wcast-qual warning; NFC.
Modified:
llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp
Modified: llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp?rev=221781&r1=221780&r2=221781&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp Wed Nov 12 07:55:27 2014
@@ -667,8 +667,9 @@ private:
bool decodeInst(StringRef Symbol, MCInst &Inst, uint64_t &Size) const {
MCDisassembler *Dis = Checker.Disassembler;
StringRef SectionMem = Checker.getSubsectionStartingAt(Symbol);
- ArrayRef<uint8_t> SectionBytes((uint8_t *)SectionMem.begin(),
- SectionMem.size());
+ ArrayRef<uint8_t> SectionBytes(
+ reinterpret_cast<const uint8_t *>(SectionMem.begin()),
+ SectionMem.size());
MCDisassembler::DecodeStatus S =
Dis->getInstruction(Inst, Size, SectionBytes, 0, nulls(), nulls());
More information about the llvm-commits
mailing list