summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2014-11-12 13:55:27 +0000
committerAaron Ballman <aaron@aaronballman.com>2014-11-12 13:55:27 +0000
commit7a7b14411786edf04800d2504e7e4b5f4ea9139f (patch)
tree692f6f7501d4398426c095a32545dd649e0a8751 /llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp
parentfd888630b5295d9b1a29c45baff0cfe38cd2619d (diff)
downloadbcm5719-llvm-7a7b14411786edf04800d2504e7e4b5f4ea9139f.tar.gz
bcm5719-llvm-7a7b14411786edf04800d2504e7e4b5f4ea9139f.zip
Fixing a -Wcast-qual warning; NFC.
llvm-svn: 221781
Diffstat (limited to 'llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp
index 692b2f2f6aa..509a06445e3 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<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());
OpenPOWER on IntegriCloud