mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-26 09:18:56 +00:00
Silence -pedantic warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28630 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -167,7 +167,9 @@ X86JITInfo::getLazyResolverFunction(JITCompilerFn F) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void *X86JITInfo::emitFunctionStub(void *Fn, MachineCodeEmitter &MCE) {
|
void *X86JITInfo::emitFunctionStub(void *Fn, MachineCodeEmitter &MCE) {
|
||||||
if (Fn != (void*)X86CompilationCallback) {
|
// Note, we cast to intptr_t here to silence a -pedantic warning that
|
||||||
|
// complains about casting a function pointer to a normal pointer.
|
||||||
|
if (Fn != (void*)(intptr_t)X86CompilationCallback) {
|
||||||
MCE.startFunctionStub(5);
|
MCE.startFunctionStub(5);
|
||||||
MCE.emitByte(0xE9);
|
MCE.emitByte(0xE9);
|
||||||
MCE.emitWordLE((intptr_t)Fn-MCE.getCurrentPCValue()-4);
|
MCE.emitWordLE((intptr_t)Fn-MCE.getCurrentPCValue()-4);
|
||||||
|
Reference in New Issue
Block a user