mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
Fixing a -Wcast-qual warning; NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221781 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cb5fadfe6a
commit
ba7dc2970b
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user