mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
[TableGen] Fix warning when compiling generated MCCodeEmitter
This fixes an instance of: warning: cast from 'const unsigned long *' to 'unsigned char *' drops const qualifier [-Wcast-qual] when compiling the generated MCCodeEmitter for an out-of-tree target that uses the optional support for instruction widths > 64 bits. Differential Revision: https://reviews.llvm.org/D97942
This commit is contained in:
parent
c81813dba4
commit
8dca28b5dd
@ -481,8 +481,8 @@ void CodeEmitterGen::run(raw_ostream &o) {
|
||||
<< " Inst = Inst.zext(" << BitWidth << ");\n"
|
||||
<< " if (Scratch.getBitWidth() != " << BitWidth << ")\n"
|
||||
<< " Scratch = Scratch.zext(" << BitWidth << ");\n"
|
||||
<< " LoadIntFromMemory(Inst, (uint8_t *)&InstBits[opcode * " << NumWords
|
||||
<< "], " << NumBytes << ");\n"
|
||||
<< " LoadIntFromMemory(Inst, (const uint8_t *)&InstBits[opcode * "
|
||||
<< NumWords << "], " << NumBytes << ");\n"
|
||||
<< " APInt &Value = Inst;\n"
|
||||
<< " APInt &op = Scratch;\n"
|
||||
<< " switch (opcode) {\n";
|
||||
|
Loading…
Reference in New Issue
Block a user