mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
Preserve const correctness.
GCC complains about casting away const. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183216 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
164de54391
commit
f102f31e15
@ -45,11 +45,11 @@ extern "C" void __register_frame(void*);
|
|||||||
|
|
||||||
static const char *processFDE(const char *Entry) {
|
static const char *processFDE(const char *Entry) {
|
||||||
const char *P = Entry;
|
const char *P = Entry;
|
||||||
uint32_t Length = *((uint32_t*)P);
|
uint32_t Length = *((const uint32_t *)P);
|
||||||
P += 4;
|
P += 4;
|
||||||
uint32_t Offset = *((uint32_t*)P);
|
uint32_t Offset = *((const uint32_t *)P);
|
||||||
if (Offset != 0)
|
if (Offset != 0)
|
||||||
__register_frame((void*)Entry);
|
__register_frame(const_cast<char *>(Entry));
|
||||||
return P + Length;
|
return P + Length;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user