mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Stop casting away const qualifier needlessly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163258 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -833,7 +833,7 @@ GenericValue ExecutionEngine::getConstantValue(const Constant *C) {
|
||||
static void StoreIntToMemory(const APInt &IntVal, uint8_t *Dst,
|
||||
unsigned StoreBytes) {
|
||||
assert((IntVal.getBitWidth()+7)/8 >= StoreBytes && "Integer too small!");
|
||||
uint8_t *Src = (uint8_t *)IntVal.getRawData();
|
||||
const uint8_t *Src = (const uint8_t *)IntVal.getRawData();
|
||||
|
||||
if (sys::isLittleEndianHost()) {
|
||||
// Little-endian host - the source is ordered from LSB to MSB. Order the
|
||||
|
Reference in New Issue
Block a user