From 7a7b14411786edf04800d2504e7e4b5f4ea9139f Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Wed, 12 Nov 2014 13:55:27 +0000 Subject: [PATCH] Fixing a -Wcast-qual warning; NFC. llvm-svn: 221781 --- llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp index 692b2f2..509a064 100644 --- a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp +++ b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp @@ -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 SectionBytes((uint8_t *)SectionMem.begin(), - SectionMem.size()); + ArrayRef SectionBytes( + reinterpret_cast(SectionMem.begin()), + SectionMem.size()); MCDisassembler::DecodeStatus S = Dis->getInstruction(Inst, Size, SectionBytes, 0, nulls(), nulls()); -- 2.7.4