[llvm-commits] CVS: llvm/lib/Target/X86/X86JITInfo.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Jun 1 10:13:23 PDT 2006
Changes in directory llvm/lib/Target/X86:
X86JITInfo.cpp updated: 1.19 -> 1.20
---
Log message:
Silence -pedantic warning.
---
Diffs of the changes: (+3 -1)
X86JITInfo.cpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletion(-)
Index: llvm/lib/Target/X86/X86JITInfo.cpp
diff -u llvm/lib/Target/X86/X86JITInfo.cpp:1.19 llvm/lib/Target/X86/X86JITInfo.cpp:1.20
--- llvm/lib/Target/X86/X86JITInfo.cpp:1.19 Wed May 24 12:04:04 2006
+++ llvm/lib/Target/X86/X86JITInfo.cpp Thu Jun 1 12:13:10 2006
@@ -167,7 +167,9 @@
}
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.emitByte(0xE9);
MCE.emitWordLE((intptr_t)Fn-MCE.getCurrentPCValue()-4);
More information about the llvm-commits
mailing list